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

Class DocFileCase

Lib/doctest.py:2607–2618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2605 return suite
2606
2607class DocFileCase(DocTestCase):
2608
2609 def id(self):
2610 return '_'.join(self._dt_test.name.split('.'))
2611
2612 def __repr__(self):
2613 return self._dt_test.filename
2614
2615 def format_failure(self, err):
2616 return ('Failed doctest test for %s\n File "%s", line 0\n\n%s'
2617 % (self._dt_test.name, self._dt_test.filename, err)
2618 )
2619
2620def DocFileTest(path, module_relative=True, package=None,
2621 globs=None, parser=DocTestParser(),

Callers 1

DocFileTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

DocFileTestFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…