New submission from Hiroki “h2” Horiuchi <x19...@gmail.com>: Create a package `pkg`. Put `test.py` there. Write `none = None` in `pkg/__init__.py`. In the directory containing `pkg/`, `python [23] -m unittest pkg.test` will terminate normally, but `python [23] -m unittest discover pkg` will raise `ImportError`. The phenomenon is the same in macOS Sierra, Debian 9.0, Windows 7. I do not think this is a very kind behavior. Thank you.
---------- components: Library (Lib), Tests, Windows, macOS files: test.py messages: 304729 nosy: Hiroki “h2” Horiuchi, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: `ImportError` is` raised` only when `python -m unittest discover` is given type: behavior versions: Python 2.7, Python 3.6 Added file: https://bugs.python.org/file47230/test.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31840> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com