summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2021-09-04 20:42:36 (GMT)
committerGitHub <noreply@github.com>2021-09-04 20:42:36 (GMT)
commitdd7b816ac87e468e2fa65ce83c2a03fe1da8503e (patch)
tree12001af79d0e03ee96993f5a3d2084de52e3db31 /Lib/test/test_tools
parenta1ba3597d2d2dd5e5d73f42b1174ab5e0a2cd224 (diff)
downloadcpython-dd7b816ac87e468e2fa65ce83c2a03fe1da8503e.zip
cpython-dd7b816ac87e468e2fa65ce83c2a03fe1da8503e.tar.gz
cpython-dd7b816ac87e468e2fa65ce83c2a03fe1da8503e.tar.bz2
bpo-45042: Now test classes decorated with `requires_hashdigest` are not skipped (GH-28060)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/test_tools')
-rw-r--r--Lib/test/test_tools/test_md5sum.py7
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)