From: Victor Stinner Date: Sun, 29 Mar 2015 23:07:29 +0000 (+0200) Subject: Issue #22390: Fix typo in regrtest, support => test_support X-Git-Tag: v2.7.10rc1~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac0d1893b93542b7fd80134bc51b867e44108262;p=thirdparty%2FPython%2Fcpython.git Issue #22390: Fix typo in regrtest, support => test_support --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 3eaea03d0f81..3a8ad91067e8 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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: