New submission from towb: Command line tools usually use the shebang and don't have a .py extension. This breaks the `python -m doctest` shortcut for testmod().
Getting it to work is probably ugly, but there should be a useful message. Currently it's just a NameError for every function, which is very confusing. ---------- components: Library (Lib) messages: 269781 nosy: towb priority: normal severity: normal status: open title: python -m doctest file_with_no_py_extension # silently fails type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27447> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com