MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_docstring

Method test_docstring

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

assertIsNoneMethod · 0.95

Tested by

no test coverage detected