[issue31840] `ImportError` is` raised` only when `python -m unittest discover` is given

2017-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Run python -m unittest discover --start-directory pkg --top-level-directory . By default the top level directory is the same as the start directory (i.e. pkg). -- nosy: +serhiy.storchaka resolution: -> not a bug

[issue31840] `ImportError` is` raised` only when `python -m unittest discover` is given

2017-10-22 Thread Hiroki “h2” Horiuchi
New submission from Hiroki “h2” Horiuchi : 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