[Python-checkins] [python/cpython] ef8320: bpo-30540: regrtest: add --matchfile option (#1909...

GitHub noreply at github.com
Fri Jun 9 04:18:51 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: ef8320cf6f09b659c63bfb188bf45dbcae556762
      https://github.com/python/cpython/commit/ef8320cf6f09b659c63bfb188bf45dbcae556762
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
    M Lib/test/libregrtest/cmdline.py
    M Lib/test/support/__init__.py
    M Lib/test/test_regrtest.py

  Log Message:
  -----------
  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.




More information about the Python-checkins mailing list