Skip to content

Commit a166e4f

Browse files
committed
do not skip a test
The pure Python implementation actually calls the underlying C functions so in a sense we may still release the GIL.
1 parent ca0ab3b commit a166e4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_hmac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,15 +1136,15 @@ def test_update_exceptions(self):
11361136
self.assertRaises(TypeError, h.update, msg)
11371137

11381138

1139-
@hashlib_helper.requires_hashdigest('sha256')
1139+
@requires_builtin_sha2()
11401140
class PyUpdateTestCase(PyModuleMixin, UpdateTestCaseMixin, unittest.TestCase):
11411141

11421142
def HMAC(self, key, msg=None):
11431143
return self.hmac.HMAC(key, msg, digestmod='sha256')
11441144

11451145
@property
11461146
def gil_minsize(self):
1147-
self.skipTest("GIL is always held")
1147+
return sha2._GIL_MINSIZE
11481148

11491149

11501150
@hashlib_helper.requires_openssl_hashdigest('sha256')

0 commit comments

Comments
 (0)