summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-04-27 01:44:28 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-04-27 01:44:28 (GMT)
commit7195963aa2b25030ef4662e6879ad27517e63fcc (patch)
tree7e4afe7f95e9f29995900790297d9ee41ca7f8be /Lib
parent5afb5c6630540f2b4fb314a9a7c5ea9692e0b0c0 (diff)
downloadcpython-7195963aa2b25030ef4662e6879ad27517e63fcc.zip
cpython-7195963aa2b25030ef4662e6879ad27517e63fcc.tar.gz
cpython-7195963aa2b25030ef4662e6879ad27517e63fcc.tar.bz2
test_support was renamed to support on py3k.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_optparse.py4
-rw-r--r--Lib/test/test_posixpath.py2
-rw-r--r--Lib/test/test_tempfile.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py
index 5cf77e4..e4ede4a 100644
--- a/Lib/test/test_optparse.py
+++ b/Lib/test/test_optparse.py
@@ -1448,7 +1448,7 @@ class TestHelp(BaseTest):
# we must restore its original value -- otherwise, this test
# screws things up for other tests when it's part of the Python
# test suite.
- with test_support.EnvironmentVarGuard() as env:
+ with support.EnvironmentVarGuard() as env:
env.set('COLUMNS', str(columns))
return InterceptingOptionParser(option_list=options)
@@ -1473,7 +1473,7 @@ class TestHelp(BaseTest):
self.assertHelpEquals(_expected_help_long_opts_first)
def test_help_title_formatter(self):
- with test_support.EnvironmentVarGuard() as env:
+ with support.EnvironmentVarGuard() as env:
env.set("COLUMNS", "80")
self.parser.formatter = TitledHelpFormatter()
self.assertHelpEquals(_expected_help_title_formatter)
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 17be3d2..a37be25 100644
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -419,7 +419,7 @@ class PosixPathTest(unittest.TestCase):
self.assert_(isinstance(posixpath.expanduser(b"~root/"), bytes))
self.assert_(isinstance(posixpath.expanduser(b"~foo/"), bytes))
- with test_support.EnvironmentVarGuard() as env:
+ with support.EnvironmentVarGuard() as env:
env.set('HOME', '/')
self.assertEqual(posixpath.expanduser("~"), "/")
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 844e608..11674a6 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -149,7 +149,7 @@ class test__candidate_tempdir_list(TC):
# _candidate_tempdir_list contains the expected directories
# Make sure the interesting environment variables are all set.
- with test_support.EnvironmentVarGuard() as env:
+ with support.EnvironmentVarGuard() as env:
for envname in 'TMPDIR', 'TEMP', 'TMP':
dirname = os.getenv(envname)
if not dirname: