mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
fix test on debug builds (closes #20731)
This commit is contained in:
parent
4f8e4c203b
commit
b77bf32685
1 changed files with 3 additions and 2 deletions
|
@ -59,12 +59,13 @@ class CodingTest(unittest.TestCase):
|
||||||
msg=c.exception.args[0])
|
msg=c.exception.args[0])
|
||||||
|
|
||||||
def test_20731(self):
|
def test_20731(self):
|
||||||
sub = subprocess.Popen([sys.executable,
|
sub = subprocess.Popen([sys.executable,
|
||||||
os.path.join(os.path.dirname(__file__),
|
os.path.join(os.path.dirname(__file__),
|
||||||
'coding20731.py')],
|
'coding20731.py')],
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
err = sub.communicate()[1]
|
err = sub.communicate()[1]
|
||||||
self.assertEquals(err, b'')
|
self.assertEqual(sub.returncode, 0)
|
||||||
|
self.assertNotIn(b'SyntaxError', err)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue