Skip to content

Commit

Permalink
bpo-31787: Skip refleak check when _hashlib is not available (pythonG…
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Feb 13, 2018
1 parent 2b77a92 commit f0bc645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_hashlib.py
Expand Up @@ -163,6 +163,7 @@ def hash_constructors(self):
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')
Expand Down

0 comments on commit f0bc645

Please sign in to comment.