MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / DocFileCase

Class DocFileCase

tools/python-3.11.9-amd64/Lib/doctest.py:2442–2453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2440 return suite
2441
2442class DocFileCase(DocTestCase):
2443
2444 def id(self):
2445 return '_'.join(self._dt_test.name.split('.'))
2446
2447 def __repr__(self):
2448 return self._dt_test.filename
2449
2450 def format_failure(self, err):
2451 return ('Failed doctest test for %s\n File "%s", line 0\n\n%s'
2452 % (self._dt_test.name, self._dt_test.filename, err)
2453 )
2454
2455def DocFileTest(path, module_relative=True, package=None,
2456 globs=None, parser=DocTestParser(),

Callers 1

DocFileTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

DocFileTestFunction · 0.68