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

Method test_param_no_docstring

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

Source from the content-addressed store, hash-verified

1330 self.expect_failure(block, err, lineno=1)
1331
1332 def test_param_no_docstring(self):
1333 function = self.parse_function("""
1334 module os
1335 os.access
1336 follow_symlinks: bool = True
1337 something_else: str = ''
1338 """)
1339 self.assertEqual(3, len(function.parameters))
1340 conv = function.parameters['something_else'].converter
1341 self.assertIsInstance(conv, str_converter)
1342
1343 def test_param_default_parameters_out_of_order(self):
1344 err = (

Callers

nothing calls this directly

Calls 3

parse_functionMethod · 0.95
assertIsInstanceMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected