Kaydet (Commit) ffaa0318 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #22390: Fix test_pdb to remove created bar.pyc file

üst 01eaf500
......@@ -63,6 +63,7 @@ class PdbTestCase(unittest.TestCase):
with open('bar.py', 'w') as f:
f.write(textwrap.dedent(bar))
self.addCleanup(test_support.unlink, 'bar.py')
self.addCleanup(test_support.unlink, 'bar.pyc')
stdout, stderr = self.run_pdb(script, commands)
self.assertTrue(
any('main.py(5)foo()->None' in l for l in stdout.splitlines()),
......
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