Issue #22390: Remove files created by tests

This commit is contained in:
Victor Stinner 2014-10-05 17:37:41 +02:00
parent 8f437aac06
commit 047b7ae566
7 changed files with 10 additions and 3 deletions

View file

@ -1,7 +1,7 @@
# -*- coding: koi8-r -*-
import unittest
from test.support import TESTFN, unlink, unload
from test.support import TESTFN, unlink, unload, rmtree
import importlib
import os
import sys
@ -129,6 +129,7 @@ class SourceEncodingTest(unittest.TestCase):
unlink(filename + "c")
unlink(filename + "o")
unload(TESTFN)
rmtree('__pycache__')
def test_error_from_string(self):
# See http://bugs.python.org/issue6289