diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index 751a713b3e8b64..220b5febc2fea4 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -166,6 +166,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')