Commit f0bc645d authored by INADA Naoki's avatar INADA Naoki Committed by GitHub

bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)

parent 2b77a921
......@@ -163,6 +163,7 @@ class HashLibTestCase(unittest.TestCase):
return itertools.chain.from_iterable(constructors)
@support.refcount_test
@unittest.skipIf(c_hashlib is None, 'Require _hashlib module')
def test_refleaks_in_hash___init__(self):
gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount')
sha1_hash = c_hashlib.new('sha1')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment