diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-08-06 11:51:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 11:51:29 (GMT) |
commit | 79bb2c93f2d81702fdf1f93720369e18a76b7d1a (patch) | |
tree | 6ab9d0c6ef07954cc871dd6eb06f3a80329d33e6 /Lib/test/test_tools/test_md5sum.py | |
parent | 52f98424a55e14f05dfa7483cc0faf634a61c9ff (diff) | |
download | cpython-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_tools/test_md5sum.py')
-rw-r--r-- | Lib/test/test_tools/test_md5sum.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_tools/test_md5sum.py b/Lib/test/test_tools/test_md5sum.py index 321bc4b..bfc1f28 100644 --- a/Lib/test/test_tools/test_md5sum.py +++ b/Lib/test/test_tools/test_md5sum.py @@ -2,7 +2,7 @@ import os import unittest -from test import support +from test.support import os_helper from test.support import hashlib_helper from test.support.script_helper import assert_python_ok, assert_python_failure @@ -15,8 +15,8 @@ class MD5SumTests(unittest.TestCase): @classmethod def setUpClass(cls): cls.script = os.path.join(scriptsdir, 'md5sum.py') - os.mkdir(support.TESTFN) - cls.fodder = os.path.join(support.TESTFN, 'md5sum.fodder') + os.mkdir(os_helper.TESTFN) + cls.fodder = os.path.join(os_helper.TESTFN, 'md5sum.fodder') with open(cls.fodder, 'wb') as f: f.write(b'md5sum\r\ntest file\r\n') cls.fodder_md5 = b'd38dae2eb1ab346a292ef6850f9e1a0d' @@ -24,7 +24,7 @@ class MD5SumTests(unittest.TestCase): @classmethod def tearDownClass(cls): - support.rmtree(support.TESTFN) + os_helper.rmtree(os_helper.TESTFN) def test_noargs(self): rc, out, err = assert_python_ok(self.script) |