Skip to content
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

bpo-38250: [Enum] only include .rst test if file available #24342

Merged
merged 2 commits into from
Jan 26, 2021

Conversation

ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Jan 26, 2021

In order to ensure the ReST documentation is up to date for Enum,
use doctest to check it -- but only if the .rst files have not
been stripped.

https://bugs.python.org/issue38250

In order to ensure the ReST documentation is up to date for Enum,
use doctest to check it -- but only if the .rst files have not
been stripped.
Lib/test/test_enum.py Outdated Show resolved Hide resolved
@ethanfurman ethanfurman merged commit 01faf45 into python:master Jan 26, 2021
@ethanfurman ethanfurman deleted the enum-rst_test branch January 26, 2021 20:53
@vstinner
Copy link
Member

Thanks for keeping tests.addTests(doctest.DocTestSuite(enum)) ;-)

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…24342)

* [Enum] only include .rst test if file available

In order to ensure the ReST documentation is up to date for Enum,
use doctest to check it -- but only if the .rst files have not
been stripped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants