[Python-Dev] 3.5 unittest does not support namespace packages for discovering (original) (raw)
Ilya Kazakevich ilya.kazakevich at jetbrains.com
Thu Mar 23 10:04:45 EDT 2017
- Previous message (by thread): [Python-Dev] Exact date of Python 2 EOL?
- Next message (by thread): [Python-Dev] 3.5 unittest does not support namespace packages for discovering
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello. I have following layout:
---tests | test_module.py | init.py
When I launch "python.exe" -m unittest discover -t . -s tests" it works perfectly. But when I remove " init.py" it says
Start directory is not importable: "tests'"
loader.py
:
if start_dir != top_level_dir:
is_not_importable = not os.path.isfile(os.path.join(start_dir,
'init.py'))
I believe __init__.py
does not play any role since Python 3.3, am I
right?
If so, it seems to be a bug. Should I create an issue?
Ilya. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170323/a692ff11/attachment.html>
- Previous message (by thread): [Python-Dev] Exact date of Python 2 EOL?
- Next message (by thread): [Python-Dev] 3.5 unittest does not support namespace packages for discovering
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]