cpython: c5c31adbefeb (original) (raw)
Mercurial > cpython
changeset 95263:c5c31adbefeb 2.7
Issue #22390: Fix test_pdb to remove created bar.pyc file [#22390]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Mon, 30 Mar 2015 01:24:57 +0200 |
parents | fb5c3528d0d7 |
children | 33e48141d83f |
files | Lib/test/test_pdb.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_pdb.py 1 |
line wrap: on
line diff
--- 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')[](#l1.7) stdout, stderr = self.run_pdb(script, commands)[](#l1.8) self.assertTrue([](#l1.9) any('main.py(5)foo()->None' in l for l in stdout.splitlines()),[](#l1.10)