diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-09-04 21:04:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-04 21:04:44 (GMT) |
commit | e5976dd2e6e966183da59df99978ebcb4b3a32df (patch) | |
tree | 855c8b48773ed07394b384abe3dcfbde4a671b14 /Lib/test/test_tools | |
parent | ed9f927527e100b6d1d5758fdd9fc20b313af226 (diff) | |
download | cpython-e5976dd2e6e966183da59df99978ebcb4b3a32df.zip cpython-e5976dd2e6e966183da59df99978ebcb4b3a32df.tar.gz cpython-e5976dd2e6e966183da59df99978ebcb4b3a32df.tar.bz2 |
bpo-45042: Now test classes decorated with `requires_hashdigest` are not skipped (GH-28060)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit dd7b816ac87e468e2fa65ce83c2a03fe1da8503e)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Diffstat (limited to 'Lib/test/test_tools')
-rw-r--r-- | Lib/test/test_tools/test_md5sum.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_tools/test_md5sum.py b/Lib/test/test_tools/test_md5sum.py index bfc1f28..92315f1 100644 --- a/Lib/test/test_tools/test_md5sum.py +++ b/Lib/test/test_tools/test_md5sum.py @@ -1,5 +1,6 @@ """Tests for the md5sum script in the Tools directory.""" +import sys import os import unittest from test.support import os_helper @@ -15,8 +16,8 @@ class MD5SumTests(unittest.TestCase): @classmethod def setUpClass(cls): cls.script = os.path.join(scriptsdir, 'md5sum.py') - os.mkdir(os_helper.TESTFN) - cls.fodder = os.path.join(os_helper.TESTFN, 'md5sum.fodder') + os.mkdir(os_helper.TESTFN_ASCII) + cls.fodder = os.path.join(os_helper.TESTFN_ASCII, '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 +25,7 @@ class MD5SumTests(unittest.TestCase): @classmethod def tearDownClass(cls): - os_helper.rmtree(os_helper.TESTFN) + os_helper.rmtree(os_helper.TESTFN_ASCII) def test_noargs(self): rc, out, err = assert_python_ok(self.script) |