mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
(cherry picked from commit f0bc645dfe
)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
This commit is contained in:
parent
ef20abed7f
commit
e81a6c86c8
1 changed files with 1 additions and 0 deletions
|
@ -163,6 +163,7 @@ class HashLibTestCase(unittest.TestCase):
|
||||||
return itertools.chain.from_iterable(constructors)
|
return itertools.chain.from_iterable(constructors)
|
||||||
|
|
||||||
@support.refcount_test
|
@support.refcount_test
|
||||||
|
@unittest.skipIf(c_hashlib is None, 'Require _hashlib module')
|
||||||
def test_refleaks_in_hash___init__(self):
|
def test_refleaks_in_hash___init__(self):
|
||||||
gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount')
|
gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount')
|
||||||
sha1_hash = c_hashlib.new('sha1')
|
sha1_hash = c_hashlib.new('sha1')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue