]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #22390: Fix typo in regrtest, support => test_support
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 29 Mar 2015 23:07:29 +0000 (01:07 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 29 Mar 2015 23:07:29 +0000 (01:07 +0200)
Lib/test/regrtest.py

index 3eaea03d0f81ddca966fbe597cf5cd68503285bd..3a8ad91067e8dc1842071b8cb423d8ee6706f661 100755 (executable)
@@ -844,12 +844,12 @@ class saved_test_environment:
         return sorted(fn + ('/' if os.path.isdir(fn) else '')
                       for fn in os.listdir(os.curdir))
     def restore_files(self, saved_value):
-        fn = support.TESTFN
+        fn = test_support.TESTFN
         if fn not in saved_value and (fn + '/') not in saved_value:
             if os.path.isfile(fn):
-                support.unlink(fn)
+                test_support.unlink(fn)
             elif os.path.isdir(fn):
-                support.rmtree(fn)
+                test_support.rmtree(fn)
 
     def resource_info(self):
         for name in self.resources: