Enable pytest-doctestplus and update minimum versions in the tests dependency set#2913
Open
namurphy wants to merge 7 commits intoPlasmaPy:mainfrom
Open
Enable pytest-doctestplus and update minimum versions in the tests dependency set#2913namurphy wants to merge 7 commits intoPlasmaPy:mainfrom
pytest-doctestplus and update minimum versions in the tests dependency set#2913namurphy wants to merge 7 commits intoPlasmaPy:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2913 +/- ##
==========================================
- Coverage 95.28% 94.49% -0.79%
==========================================
Files 108 108
Lines 9632 9632
Branches 1451 1451
==========================================
- Hits 9178 9102 -76
- Misses 273 343 +70
- Partials 181 187 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
I'm currently getting a bunch of test collection errors like below. It may take a bit to track down why. Probably will need to wait until after I'm done proposal writing! ________________________ ERROR collecting CHANGELOG.rst ________________________
.nox/tests-3-13-skipslow/lib/python3.13/site-packages/pytest_doctestplus/plugin.py:355: in collect
optionflags = get_optionflags(self) | FIX
.nox/tests-3-13-skipslow/lib/python3.13/site-packages/pytest_doctestplus/plugin.py:192: in get_optionflags
flag_int |= doctest.OPTIONFLAGS_BY_NAME[flag_str]
E KeyError: 'NUMBER'
_________________________ ERROR collecting conftest.py _________________________
.nox/tests-3-13-skipslow/lib/python3.13/site-packages/pytest_doctestplus/plugin.py:285: in collect
options = get_optionflags(self) | FIX
.nox/tests-3-13-skipslow/lib/python3.13/site-packages/pytest_doctestplus/plugin.py:192: in get_optionflags
flag_int |= doctest.OPTIONFLAGS_BY_NAME[flag_str]
E KeyError: 'NUMBER' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enables
pytest-doctestplusas a pytest extension. See #2912 for the motivation. Closes #2912.Doctests are only run on the most recent version of Python (currently 3.13).
I'm starting this now so I don't forget, but I'll come back to this probably in December after a forthcoming proposal deadline.