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

2024-09-08 Thread Stefano Rivera
Hi Louis-Philippe (2022.11.28_01:46:58_+0200) > 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". A couple of years later:

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

2024-09-08 Thread Scott Kitterman
On September 8, 2024 1:43:33 PM UTC, Stefano Rivera wrote: >Hi Louis-Philippe (2022.11.28_01:46:58_+0200) >> 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 typical

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

2024-09-08 Thread Julian Gilbey
On Sun, Sep 08, 2024 at 03:43:33PM +0200, Stefano Rivera wrote: > [...] > We've implemented the feature in Python 3.12, unittest's runner now > exits with return value 5 if no tests were discovered, like pytest does. > https://github.com/python/cpython/issues/113661 > [...] > > I built 6440 packag