Commit b77bf326 authored by Benjamin Peterson's avatar Benjamin Peterson

fix test on debug builds (closes #20731)

parent 4f8e4c20
......@@ -59,12 +59,13 @@ class CodingTest(unittest.TestCase):
msg=c.exception.args[0])
def test_20731(self):
sub = subprocess.Popen([sys.executable,
sub = subprocess.Popen([sys.executable,
os.path.join(os.path.dirname(__file__),
'coding20731.py')],
stderr=subprocess.PIPE)
err = sub.communicate()[1]
self.assertEquals(err, b'')
self.assertEqual(sub.returncode, 0)
self.assertNotIn(b'SyntaxError', err)
if __name__ == "__main__":
unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment