Ensure that C module has valid method signatures.
(self)
| 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. |
nothing calls this directly
no test coverage detected