[issue44586] unittest requires __init__.py for test discovery

2021-07-08 Thread ma19
New submission from ma19 : This is how my project is currently set up: src: - main.py - src1.py - src2.py test: - __init__.py - test_src1.py - test_src2.py If I remove __init__.py from the "test" directory, the unittest discovery fails. I thought that __init__.py was no longer req

[issue44586] unittest requires __init__.py for test discovery

2021-07-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue23882 -- nosy: +xtreak ___ Python tracker ___ ___

[issue44586] unittest requires __init__.py for test discovery

2021-07-08 Thread Inada Naoki
Inada Naoki added the comment: And https://dev.to/methane/don-t-omit-init-py-3hga too. -- nosy: +methane ___ Python tracker ___ ___