summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-03-01 15:31:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-03-01 15:31:36 (GMT)
commitb77bf326852f97f125ff57810a5f9663209414a7 (patch)
tree2dfac5951f2fc8c726e5bccae8e5dece9242447e /Lib
parent4f8e4c203b83b676aaaaae414174454629a2cf9a (diff)
downloadcpython-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.py5
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()