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

INADA Naoki webhook-mailer at python.org
Tue Feb 13 09:41:24 EST 2018


https://github.com/python/cpython/commit/f0bc645dfede8118c84844bad319cd952c4d1905
commit: f0bc645dfede8118c84844bad319cd952c4d1905
branch: master
author: INADA Naoki <methane at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-02-13T23:41:19+09:00
summary:

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

files:
M Lib/test/test_hashlib.py

diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py
index f7df872793c2..5b0218b08567 100644
--- a/Lib/test/test_hashlib.py
+++ b/Lib/test/test_hashlib.py
@@ -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')



More information about the Python-checkins mailing list