From: Victor Stinner Date: Sun, 29 Mar 2015 23:24:57 +0000 (+0200) Subject: Issue #22390: Fix test_pdb to remove created bar.pyc file X-Git-Tag: v2.7.10rc1~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffaa03186714a6cb2d1af4861e633801a6b52988;p=thirdparty%2FPython%2Fcpython.git Issue #22390: Fix test_pdb to remove created bar.pyc file --- diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 559f75623f4f..b6dd2b7370dc 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -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()),