mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-45042: Now test classes decorated with requires_hashdigest
are not skipped (GH-28060)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
a1ba3597d2
commit
dd7b816ac8
4 changed files with 22 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue