Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove un-necessary test
  • Loading branch information
picnixz committed May 29, 2024
commit be4ef583467524886664eb7ad0b5f0ecd1ac35fd
20 changes: 0 additions & 20 deletions Lib/test/test_doctest/test_doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2404,26 +2404,6 @@ def test_DocFileSuite():
>>> suite.run(unittest.TestResult())
<unittest.result.TestResult run=3 errors=0 failures=2>

Support for using a package's __loader__.get_data() is also
provided.

>>> import importlib.util, unittest, test
>>> added_loader = False
>>> if not hasattr(test, '__loader__'):
... spec = importlib.util.find_spec(test.__name__)
... test.__loader__ = spec.loader
... added_loader = True
>>> try:
... suite = doctest.DocFileSuite('test_doctest.txt',
... 'test_doctest2.txt',
... 'test_doctest4.txt',
... package='test.test_doctest')
... suite.run(unittest.TestResult())
... finally:
... if added_loader:
... del test.__loader__
<unittest.result.TestResult run=3 errors=0 failures=2>

'/' should be used as a path separator. It will be converted
to a native separator at run time:

Expand Down