summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pdb.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-10-05 15:37:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-10-05 15:37:41 (GMT)
commit047b7ae56628717160eb75e379e2bfdaa59dfc18 (patch)
tree5fce44a78310c538882fca71eea5e99a5f7b81c8 /Lib/test/test_pdb.py
parent8f437aac068e13fe8418bb0374baf4395e7b4994 (diff)
downloadcpython-047b7ae56628717160eb75e379e2bfdaa59dfc18.zip
cpython-047b7ae56628717160eb75e379e2bfdaa59dfc18.tar.gz
cpython-047b7ae56628717160eb75e379e2bfdaa59dfc18.tar.bz2
Issue #22390: Remove files created by tests
Diffstat (limited to 'Lib/test/test_pdb.py')
-rw-r--r--Lib/test/test_pdb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index 895be02..edc9e75 100644
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -916,6 +916,7 @@ class PdbTestCase(unittest.TestCase):
with open(filename, 'w') as f:
f.write(textwrap.dedent(script))
self.addCleanup(support.unlink, filename)
+ self.addCleanup(support.rmtree, '__pycache__')
cmd = [sys.executable, '-m', 'pdb', filename]
stdout = stderr = None
with subprocess.Popen(cmd, stdout=subprocess.PIPE,