Issue 35412: test_future4 ran no test (original) (raw)

Since bpo-34279 has been fixed, regrtest now logs a message when a test runs no test. I noticed that test_future4 logs such message:

... 0:05:23 load avg: 0.56 [152/412] test_future4 0:05:24 load avg: 0.56 [153/412] test_future5 -- test_future4 run no tests ... 2 tests run no tests: test_dtrace test_future4

I can reproduce the issue:

$ ./python -m test test_future4 (...) test_future4 run no tests (...) Tests result: NO TEST RUN

The test has been added by: commit 62e2c7e3dfffd8465a54b99fc6d3c2a60acab350 Author: Jeremy Hylton <jeremy@alum.mit.edu> Date: Wed Feb 28 17:48:06 2001 +0000

Add regression test for future statements.  This adds eight files, but
seven are not tests in their own right; these files are mentioned in
regrtest.

diff --git a/Lib/test/test_future4.py b/Lib/test/test_future4.py new file mode 100644 index 0000000000..805263be89 --- /dev/null +++ b/Lib/test/test_future4.py @@ -0,0 +1,10 @@ +"""This is a test""" +import future +from future import nested_scopes + +def f(x):

... test removed by commit 3090694068670371cdbd5b1a3d3c5dbecc83835a.

A file recreated by:

commit fa50bad9578cf32e6adcaf52c3a58c7b6cd81e30 Author: Christian Heimes <christian@cheimes.de> Date: Wed Mar 26 22:55:31 2008 +0000

I forgot to svn add the future test

... I guess that it's related to:

commit 3c60833e1e53f6239825b44f76fa22172feb1790 Author: Christian Heimes <christian@cheimes.de> Date: Wed Mar 26 22:01:37 2008 +0000

Patch [#2477](issue2477 "[closed] parser support for future import of unicode_strings"): Added from __future__ import unicode_literals

The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.

(Other candidates: commit 342212c52afd375d93f44f3ecda0914d77372f26 and commit 7f23d86107dfea69992322577c5033f2edbc3b4f.)

There are a few more on Windows:

4 tests run no tests: test_dtrace test_future4 test_multiprocessing_fork test_multiprocessing_forkserver

test_multiprocessing_fork and test_multiprocessing_forkserver should raise SkipTest on Windows.