[issue15178] Doctest should handle situations when test files are not readable
Serhiy Storchaka
report at bugs.python.org
Sun Feb 15 15:37:58 CET 2015
Serhiy Storchaka added the comment:
Doctest still failed with backtrace if argument is a file name.
$ ./python -m doctest aaa.py
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/home/serhiy/py/cpython/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/serhiy/py/cpython/Lib/doctest.py", line 2795, in <module>
sys.exit(_test())
File "/home/serhiy/py/cpython/Lib/doctest.py", line 2773, in _test
m = __import__(filename[:-3])
ImportError: No module named 'aaa'
It would be good to have tests.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15178>
_______________________________________
More information about the Python-bugs-list
mailing list