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

Method test_legacy_converters

Lib/test/test_clinic.py:2459–2463  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2457 self.assertTrue(parser.flag)
2458
2459 def test_legacy_converters(self):
2460 block = self.parse('module os\nos.access\n path: "s"')
2461 module, function = block.signatures
2462 conv = (function.parameters['path']).converter
2463 self.assertIsInstance(conv, str_converter)
2464
2465 def test_legacy_converters_non_string_constant_annotation(self):
2466 err = "Annotations must be either a name, a function call, or a string"

Callers

nothing calls this directly

Calls 2

parseMethod · 0.95
assertIsInstanceMethod · 0.80

Tested by

no test coverage detected