MCPcopy Index your code
hub / github.com/python/cpython / check_context

Method check_context

Lib/test/test_support.py:869–872  ·  view source on GitHub ↗
(self, disabled=True)

Source from the content-addressed store, hash-verified

867 self.skipTest("requires FIPS mode")
868
869 def check_context(self, disabled=True):
870 if disabled:
871 return self.assertRaises(ValueError)
872 return contextlib.nullcontext()
873
874 def try_import_attribute(self, fullname, default=None):
875 if fullname is None:

Callers 5

check_openssl_hashMethod · 0.95
check_openssl_hmacMethod · 0.95
check_builtin_hashMethod · 0.95
check_builtin_hmacMethod · 0.95
test_disable_hashMethod · 0.95

Calls 1

assertRaisesMethod · 0.45

Tested by

no test coverage detected