Kaydet (Commit) ac0d1893 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #22390: Fix typo in regrtest, support => test_support

üst c0a2f2b0
...@@ -844,12 +844,12 @@ class saved_test_environment: ...@@ -844,12 +844,12 @@ class saved_test_environment:
return sorted(fn + ('/' if os.path.isdir(fn) else '') return sorted(fn + ('/' if os.path.isdir(fn) else '')
for fn in os.listdir(os.curdir)) for fn in os.listdir(os.curdir))
def restore_files(self, saved_value): 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 fn not in saved_value and (fn + '/') not in saved_value:
if os.path.isfile(fn): if os.path.isfile(fn):
support.unlink(fn) test_support.unlink(fn)
elif os.path.isdir(fn): elif os.path.isdir(fn):
support.rmtree(fn) test_support.rmtree(fn)
def resource_info(self): def resource_info(self):
for name in self.resources: for name in self.resources:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment