Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s"

2023-04-27 Thread Stefano Rivera
Hi Louis-Philippe (2022.11.28_14:44:36_-0400) > I don't think unittest provides an interface to achieve this. Now implemented! https://github.com/python/cpython/pull/102051 This will cause all the packages that don't have tests to fail their empty test suite. We'll have to decide what to do

Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s"

2022-11-28 Thread Stefano Rivera
Hi Louis-Philippe (2022.11.27_23:46:58_+) > When this happens, the result of the test command typically looks like "Ran > 0 tests in 0.000s". I don't think unittest provides an interface to achieve this. We're probably stuck parsing logs if we want it. Pytest makes it easy:

Bug#1024971: pybuild: should fail when the result of running tests is "Ran 0 tests in 0.000s"

2022-11-27 Thread Louis-Philippe VĂ©ronneau
Package: dh-python Version: 5.20221122 Severity: wishlist Dear maintainers, Too often, a mistake or a misconfiguration leads to no tests being detected when trying to run the upstream testsuite. When this happens, the result of the test command typically looks like "Ran 0 tests in 0.000s".