diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-02-13 14:41:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 14:41:19 (GMT) |
commit | f0bc645dfede8118c84844bad319cd952c4d1905 (patch) | |
tree | 9934ea5824127c6720e0623acc70c1f9268105aa | |
parent | 2b77a921e6a4dee236047ac8d69cf9f915916fdc (diff) | |
download | cpython-f0bc645dfede8118c84844bad319cd952c4d1905.zip cpython-f0bc645dfede8118c84844bad319cd952c4d1905.tar.gz cpython-f0bc645dfede8118c84844bad319cd952c4d1905.tar.bz2 |
bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
-rw-r--r-- | Lib/test/test_hashlib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index f7df872..5b0218b 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -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') |