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

Method test_docstring

Lib/test/test_fstring.py:567–574  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

565
566
567 def test_docstring(self):
568 def f():
569 f'''Not a docstring'''
570 self.assertIsNone(f.__doc__)
571 def g():
572 '''Not a docstring''' \
573 f''
574 self.assertIsNone(g.__doc__)
575
576 def test_literal_eval(self):
577 with self.assertRaisesRegex(ValueError, 'malformed node or string'):

Callers

nothing calls this directly

Calls 1

assertIsNoneMethod · 0.95

Tested by

no test coverage detected