]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #22390: Fix test_pdb to remove created bar.pyc file
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 29 Mar 2015 23:24:57 +0000 (01:24 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 29 Mar 2015 23:24:57 +0000 (01:24 +0200)
Lib/test/test_pdb.py

index 559f75623f4f2ed65fe83cea29b46b4bd517934e..b6dd2b7370dc8f53664fff68fc22cc753929404f 100644 (file)
@@ -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()),