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

Class DocFileCase

Lib/doctest.py:2531–2542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2529 return suite
2530
2531class DocFileCase(DocTestCase):
2532
2533 def id(self):
2534 return '_'.join(self._dt_test.name.split('.'))
2535
2536 def __repr__(self):
2537 return self._dt_test.filename
2538
2539 def format_failure(self, err):
2540 return ('Failed doctest test for %s\n File "%s", line 0\n\n%s'
2541 % (self._dt_test.name, self._dt_test.filename, err)
2542 )
2543
2544def DocFileTest(path, module_relative=True, package=None,
2545 globs=None, parser=DocTestParser(),

Callers 1

DocFileTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

DocFileTestFunction · 0.68