[Python-checkins] cpython (2.7): Issue #22390: Fix test_pdb to remove created bar.pyc file

victor.stinner python-checkins at python.org
Mon Mar 30 01:25:05 CEST 2015


https://hg.python.org/cpython/rev/c5c31adbefeb
changeset: 95263:c5c31adbefeb
branch: 2.7
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Mar 30 01:24:57 2015 +0200
summary:
 Issue #22390: Fix test_pdb to remove created bar.pyc file
files:
 Lib/test/test_pdb.py | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -63,6 +63,7 @@
 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()),
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /