diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-03-01 15:31:36 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-03-01 15:31:36 (GMT) |
commit | b77bf326852f97f125ff57810a5f9663209414a7 (patch) | |
tree | 2dfac5951f2fc8c726e5bccae8e5dece9242447e /Lib | |
parent | 4f8e4c203b83b676aaaaae414174454629a2cf9a (diff) | |
download | cpython-b77bf326852f97f125ff57810a5f9663209414a7.zip cpython-b77bf326852f97f125ff57810a5f9663209414a7.tar.gz cpython-b77bf326852f97f125ff57810a5f9663209414a7.tar.bz2 |
fix test on debug builds (closes #20731)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_coding.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_coding.py b/Lib/test/test_coding.py index 7606767..bdbb51f 100644 --- a/Lib/test/test_coding.py +++ b/Lib/test/test_coding.py @@ -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() |