-
Notifications
You must be signed in to change notification settings - Fork 297
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
TST: also test on python 3.10, switch to pytest #2142
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2142 +/- ##
===========================================
+ Coverage 75.93% 76.34% +0.41%
===========================================
Files 440 441 +1
Lines 23630 23649 +19
Branches 3439 3737 +298
===========================================
+ Hits 17943 18055 +112
+ Misses 4956 4857 -99
- Partials 731 737 +6
|
nosetest doesn't support Python 3.10 -> We can use unittest itself for running the test or pytest |
nose does not support Python 3.10 and is deprecated. pytest also gives good and nice output, so use this instead in the GitHub Action and in the docs
dc7898e
to
eb4be3d
Compare
- coverage settings - don't capture warnings, as then logging would not be able to capture them, causing test fails see https://docs.pytest.org/en/6.2.x/warnings.html#disabling-warning-capture-entirely
apparently nose dependes on jinja2 and installed jinja2 implicitly
support the initialization logging message on python 3.10 Python 3.10 returns such a version info: python 3.10.2 (main, Jan 16 2022, 11:55:27) [GCC 9.3.0] the gcc version is now extend the regex to catch this and make it more generic, less complex
- the __init__.py was missing. this was the reason that this test was never executed before with nose - set the overwrite parameter to test the behaviour actually
the old code assumed that there were no command line arguments to the calling program. now set the arguments explicitly to []
pytest by default captures all warnings, but we also want to test in our unittest if the capturing of warnings by the logging works. For a simple solution and to keep this PR focused, I chose to disable the warnings capturing in pytest. @aaronkaplan Can you please set the nosetests as optional (not required) in the GitHub settings? Thanks. |
looks good. IMHO we can merge. |
No description provided.