diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 85cac94dfec78d..3890df93bbccdc 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -2154,7 +2154,7 @@ def test_move_dir_permission_denied(self): # Create a file and keep the directory immutable os.lchflags(TESTFN_SRC, stat.UF_OPAQUE) - os_helper.create_empty_file(os.path.join(TESTFN_SRC, 'child')) + support.create_empty_file(os.path.join(TESTFN_SRC, 'child')) os.lchflags(TESTFN_SRC, stat.SF_IMMUTABLE) # Testing on a non-empty immutable directory @@ -2164,10 +2164,10 @@ def test_move_dir_permission_denied(self): finally: if os.path.exists(TESTFN_SRC): os.lchflags(TESTFN_SRC, stat.UF_OPAQUE) - os_helper.rmtree(TESTFN_SRC) + support.rmtree(TESTFN_SRC) if os.path.exists(TESTFN_DST): os.lchflags(TESTFN_DST, stat.UF_OPAQUE) - os_helper.rmtree(TESTFN_DST) + support.rmtree(TESTFN_DST) class TestCopyFile(unittest.TestCase):