Author vstinner
Recipients miss-islington, pablogsal, serhiy.storchaka, terry.reedy, vstinner
Date 2018-11-29.21:58:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543528699.88.0.788709270274.issue34279@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks Pablo! I merged your change in 2.7, 3.6, 3.7 and master branches.

To reuse the example of my first message, we now get:

vstinner@apu$ ./python  -W error -m test test_asyncio -m test_no_such_test 
Run tests sequentially
0:00:00 load avg: 1.21 [1/1] test_asyncio
test_asyncio run no tests

== Tests result: NO TEST RUN ==

1 test run no tests:
    test_asyncio

Total duration: 347 ms
Tests result: NO TEST RUN

vstinner@apu$ echo $?
0


So the exit status is still a success (code 0), but "Tests result: NO TEST RUN" is an hint that no test has been executed.

If we run two files, but one file runs no test, the output now contains "1 test run no tests: test_sys":

$ ./python -m test test_os test_sys -m test_access -v
== CPython 3.8.0a0 (heads/platform_popen:4fcc412d3d, Nov 29 2018, 21:21:53) [GCC 8.2.1 20181105 (Red Hat 8.2.1-5)]
== Linux-4.19.3-300.fc29.x86_64-x86_64-with-glibc2.28 little-endian
== cwd: /home/vstinner/prog/python/master/build/test_python_18420
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 1.05 [1/2] test_os
test_access (test.test_os.FileTests) ... ok

----------------------------------------------------------------------

Ran 1 test in 0.001s

OK
0:00:00 load avg: 1.05 [2/2] test_sys

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK
test_sys run no tests

== Tests result: SUCCESS ==

1 test OK.

1 test run no tests:
    test_sys

Total duration: 240 ms
Tests result: SUCCESS
History
Date User Action Args
2018-11-29 21:58:19vstinnersetrecipients: + vstinner, terry.reedy, serhiy.storchaka, pablogsal, miss-islington
2018-11-29 21:58:19vstinnersetmessageid: <1543528699.88.0.788709270274.issue34279@psf.upfronthosting.co.za>
2018-11-29 21:58:19vstinnerlinkissue34279 messages
2018-11-29 21:58:19vstinnercreate