From c37a68e233fb4c126c70c99bf75942dedeb14237 2020-02-24 15:46:27 From: Itamar Turner-Trauring Date: 2020-02-24 15:46:27 Subject: [PATCH] Assert status is OK. --- diff --git a/IPython/utils/tests/test_process.py b/IPython/utils/tests/test_process.py index 958888c..bae941d 100644 --- a/IPython/utils/tests/test_process.py +++ b/IPython/utils/tests/test_process.py @@ -157,8 +157,9 @@ class SubProcessTestCase(tt.TempFileMixin): there is no deadlock). """ with capture_output(display=False): - system(("%s -c 'import sys\nfor i in range(20000): " + - "sys.stderr.write(\" \" * 100 + \"\\n\")'") % (python,)) + status = system(("%s -c \"import sys\nfor i in range(20000): " + + "sys.stderr.write('b' * 100)\"") % (python,)) + self.assertEqual(status, 0) def test_getoutput(self): out = getoutput('%s "%s"' % (python, self.fname))