summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-06 11:51:29 (GMT)
committerGitHub <noreply@github.com>2020-08-06 11:51:29 (GMT)
commit79bb2c93f2d81702fdf1f93720369e18a76b7d1a (patch)
tree6ab9d0c6ef07954cc871dd6eb06f3a80329d33e6 /Lib/test/test_ntpath.py
parent52f98424a55e14f05dfa7483cc0faf634a61c9ff (diff)
downloadcpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.zip
cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.gz
cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 69c4471..0d84ff8 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -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)