]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30540: regrtest: add --matchfile option (#1909)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Jun 2017 08:18:48 +0000 (10:18 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Jun 2017 08:18:48 +0000 (10:18 +0200)
commitef8320cf6f09b659c63bfb188bf45dbcae556762
tree84d5b1e129e763daddc70a307524dc4fc6e55df1
parent824f6879121413e09439fffef54580413e44bf46
bpo-30540: regrtest: add --matchfile option (#1909)

* Add a new option taking a filename to get a list of test names to
  filter tests.
* support.match_tests becomes a list.
* Modify run_unittest() to accept to match the whole test identifier,
  not just a part of a test identifier.

For example, the following command only runs test_default_timeout()
of the BarrierTests class of test_threading:

$ ./python -m test -v test_threading -m test.test_threading.BarrierTests.test_default_timeout

Remove also some empty lines from test_regrtest.py to make flake8
tool happy.
Lib/test/libregrtest/cmdline.py
Lib/test/support/__init__.py
Lib/test/test_regrtest.py