]> granicus.if.org Git - python/commitdiff
test_support was renamed to support on py3k.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Mon, 27 Apr 2009 01:44:28 +0000 (01:44 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Mon, 27 Apr 2009 01:44:28 +0000 (01:44 +0000)
Lib/test/test_optparse.py
Lib/test/test_posixpath.py
Lib/test/test_tempfile.py

index 5cf77e4af3f42baacc6a6c4c986bc1fe2c71bc97..e4ede4a2b39b78998abd5e78a0eb04edb1e8a26c 100644 (file)
@@ -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)
index 17be3d2c63e1854904b608c070dad89f0bfca257..a37be2530a330c6b09b5bd9ad27b997b31c7a21d 100644 (file)
@@ -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("~"), "/")
 
index 844e608a6ff9b4790d4719bc469cb6e22f3b8eea..11674a62fb13b0b623c620c67bf7c5a35ad990bc 100644 (file)
@@ -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: