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

Method test_signatures

Lib/test/test_zoneinfo/test_zoneinfo.py:439–450  ·  view source on GitHub ↗

Ensure that C module has valid method signatures.

(self)

Source from the content-addressed store, hash-verified

437 @unittest.skipIf(MISSING_C_DOCSTRINGS,
438 "Signature information for builtins requires docstrings")
439 def test_signatures(self):
440 """Ensure that C module has valid method signatures."""
441 import inspect
442
443 must_have_signatures = (
444 self.klass.clear_cache,
445 self.klass.no_cache,
446 self.klass.from_file,
447 )
448 for method in must_have_signatures:
449 with self.subTest(method=method):
450 inspect.Signature.from_callable(method)
451
452 def test_fold_mutate(self):
453 """Test that fold isn't mutated when no change is necessary.

Callers

nothing calls this directly

Calls 2

from_callableMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected