mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
This commit is contained in:
parent
52f98424a5
commit
79bb2c93f2
20 changed files with 73 additions and 56 deletions
|
@ -285,7 +285,7 @@ class TestNtpath(NtpathTestCase):
|
|||
def test_realpath_broken_symlinks(self):
|
||||
ABSTFN = ntpath.abspath(os_helper.TESTFN)
|
||||
os.mkdir(ABSTFN)
|
||||
self.addCleanup(support.rmtree, ABSTFN)
|
||||
self.addCleanup(os_helper.rmtree, ABSTFN)
|
||||
|
||||
with support.change_cwd(ABSTFN):
|
||||
os.mkdir("subdir")
|
||||
|
@ -427,9 +427,9 @@ class TestNtpath(NtpathTestCase):
|
|||
ABSTFN = ntpath.abspath(os_helper.TESTFN)
|
||||
|
||||
os_helper.unlink(ABSTFN)
|
||||
support.rmtree(ABSTFN)
|
||||
os_helper.rmtree(ABSTFN)
|
||||
os.mkdir(ABSTFN)
|
||||
self.addCleanup(support.rmtree, ABSTFN)
|
||||
self.addCleanup(os_helper.rmtree, ABSTFN)
|
||||
|
||||
test_dir_long = ntpath.join(ABSTFN, "MyVeryLongDirectoryName")
|
||||
os.mkdir(test_dir_long)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue