bpo-31787: Skip refleak check when _hashlib is not available (GH-5660) · python/cpython@e81a6c8 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit e81a6c8

miss-islingtonmethane

and

authored

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

(cherry picked from commit f0bc645) Co-authored-by: INADA Naoki methane@users.noreply.github.com

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -163,6 +163,7 @@ def hash_constructors(self):
163 163 return itertools.chain.from_iterable(constructors)
164 164
165 165 @support.refcount_test
166 +@unittest.skipIf(c_hashlib is None, 'Require _hashlib module')
166 167 def test_refleaks_in_hash___init__(self):
167 168 gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount')
168 169 sha1_hash = c_hashlib.new('sha1')