Skip to content

bpo-30523: regrtest: Add --list-cases option #2238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 16, 2017

Conversation

mlouielu
Copy link
Contributor

No description provided.

@mention-bot
Copy link

@mlouielu, thanks for your PR! By analyzing the history of the files in this pull request, we identified @brettcannon, @zooba and @abalkin to be potential reviewers.

* Add get_abs_module() function, use it in list_cases()
* list_cases() now logs skipped tests into stderr
if isinstance(test, unittest.loader._FailedTest):
continue
elif isinstance(test, doctest.DocTestCase):
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this if: doctest falls into the the unittest.TestCase case, and... it just works! I'm able to pass to output to -m test --matchfile=tests and only these doctest tests are executed!

@@ -1,4 +1,5 @@
import datetime
import doctest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this import (see above).

@vstinner vstinner merged commit a49c935 into python:master Jun 16, 2017
vstinner added a commit that referenced this pull request Jun 16, 2017
* bpo-30523: regrtest: Add --list-cases option (#2238)
* bpo-30284: Fix regrtest for out of tree build (#1481)
* bpo-30540: regrtest: add --matchfile option (#1909)
* bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479)
* bpo-30263: regrtest: log system load (#1452)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants