summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-02-13 15:33:50 (GMT)
committerGitHub <noreply@github.com>2018-02-13 15:33:50 (GMT)
commit5d0d0eaf3ccee4349a5bed6e7741d09d56f2ab50 (patch)
tree097900a5e8477129cc0219b438a6796272fe6961
parent47316342417146f62653bc3c3dd505bfacc5e956 (diff)
downloadcpython-5d0d0eaf3ccee4349a5bed6e7741d09d56f2ab50.zip
cpython-5d0d0eaf3ccee4349a5bed6e7741d09d56f2ab50.tar.gz
cpython-5d0d0eaf3ccee4349a5bed6e7741d09d56f2ab50.tar.bz2
bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
(cherry picked from commit f0bc645dfede8118c84844bad319cd952c4d1905) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
-rw-r--r--Lib/test/test_hashlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py
index 751a713..220b5fe 100644
--- a/Lib/test/test_hashlib.py
+++ b/Lib/test/test_hashlib.py
@@ -166,6 +166,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')