#2621 rename test.test_support to test.support

This commit is contained in:
Benjamin Peterson 2008-05-20 21:35:26 +00:00
parent 6a654814ea
commit ee8712cda4
358 changed files with 1308 additions and 1307 deletions

View file

@ -10,7 +10,7 @@ import errno
import unittest
import tarfile
from test import test_support
from test import support
# Check for our compression modules.
try:
@ -27,7 +27,7 @@ def md5sum(data):
return md5(data).hexdigest()
def path(path):
return test_support.findfile(path)
return support.findfile(path)
TEMPDIR = os.path.join(tempfile.gettempdir(), "test_tarfile_tmp")
tarname = path("testtar.tar")
@ -1171,7 +1171,7 @@ def test_main():
]
try:
test_support.run_unittest(*tests)
support.run_unittest(*tests)
finally:
if os.path.exists(TEMPDIR):
shutil.rmtree(TEMPDIR)