From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 13 Feb 2018 15:33:50 +0000 (-0800) Subject: bpo-31787: Skip refleak check when _hashlib is not available (GH-5660) X-Git-Tag: v3.6.5rc1~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d0d0eaf3ccee4349a5bed6e7741d09d56f2ab50;p=thirdparty%2FPython%2Fcpython.git bpo-31787: Skip refleak check when _hashlib is not available (GH-5660) (cherry picked from commit f0bc645dfede8118c84844bad319cd952c4d1905) Co-authored-by: INADA Naoki --- diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index 751a713b3e8b..220b5febc2fe 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')