[New-bugs-announce] [issue35617] unittest discover does not work with implicit namespaces
Simon Fagerholm
report at bugs.python.org
Sun Dec 30 04:32:17 EST 2018
New submission from Simon Fagerholm <zlim00 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue35617>
_______________________________________
More information about the New-bugs-announce
mailing list