changeset: 89435:dcf4fbf446ca branch: 3.3 parent: 89432:afb76ca87022 user: Benjamin Peterson date: Sat Mar 01 10:31:36 2014 -0500 files: Lib/test/test_coding.py description: fix test on debug builds (closes #20731) diff -r afb76ca87022 -r dcf4fbf446ca Lib/test/test_coding.py --- a/Lib/test/test_coding.py Sat Mar 01 02:03:57 2014 -0500 +++ b/Lib/test/test_coding.py Sat Mar 01 10:31:36 2014 -0500 @@ -59,12 +59,13 @@ 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()