Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0bc645

Browse files
authored
bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
1 parent 2b77a92 commit f0bc645

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_hashlib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def hash_constructors(self):
163163
return itertools.chain.from_iterable(constructors)
164164

165165
@support.refcount_test
166+
@unittest.skipIf(c_hashlib is None, 'Require _hashlib module')
166167
def test_refleaks_in_hash___init__(self):
167168
gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount')
168169
sha1_hash = c_hashlib.new('sha1')

0 commit comments

Comments
 (0)