New submission from Simon Fagerholm <zli...@gmail.com>:

When "python -m unittest discover" is run in a folder that is an implicit 
namespace package with the structure as below, no tests are discovered.
The condition that the tests must be importable from the top level directory is 
fulfilled and has been tested by importing the tests from the top level.

I did some investigating and have a PR underway that seems to fix it

Example project structure is:
.
├── requirements.txt
├── main.py
├── tests
    ├── unit
    │   └── test_thing1.py
    └── integration.py
        └── test_integration_thing1.py

----------
components: Library (Lib)
messages: 332748
nosy: Simon Fagerholm
priority: normal
severity: normal
status: open
title: unittest discover does not work with implicit namespaces
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35617>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to