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

Miss Islington (bot) webhook-mailer at python.org
Tue Feb 13 10:33:53 EST 2018


https://github.com/python/cpython/commit/5d0d0eaf3ccee4349a5bed6e7741d09d56f2ab50
commit: 5d0d0eaf3ccee4349a5bed6e7741d09d56f2ab50
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年02月13日T07:33:50-08:00
summary:
bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
(cherry picked from commit f0bc645dfede8118c84844bad319cd952c4d1905)
Co-authored-by: INADA Naoki <methane at users.noreply.github.com>
files:
M Lib/test/test_hashlib.py
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 @@ 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

AltStyle によって変換されたページ (->オリジナル) /