-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-136297: Fix hypothesis
and subTest
usage in test_zoneinfo_property.py
#136384
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
Conversation
…fo_property.py`
It is interesting why CI for #136298 passed. We explicitly have Hypothesis job. Why it didn't fail? CC @vstinner and @serhiy-storchaka |
Thanks! I tested the patch and the test passes now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this depend on the hypothesis
version?
@kulikjak what version do you use? |
Oh, that might be the issue. I have 6.100.1 installed - I will test it with the latest one. |
I just tried it with I checked the hypothesis sources and this warning/error was added with HypothesisWorks/hypothesis#1072 and is still there. And the comment there indeed suggest that |
Aha! Adding |
I added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I retested the changes and the test passes.
.github/workflows/build.yml
Outdated
@@ -426,7 +426,7 @@ jobs: | |||
# | |||
# (GH-104097) test_sysconfig is skipped because it has tests that are | |||
# failing when executed from inside a virtual environment. | |||
"${VENV_PYTHON}" -m test \ | |||
"${VENV_PYTHON}" -We -m test \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not related change. It is better to do it separately, and first examine the history, because it can break tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will open a new issue about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done #136409
Thanks everyone! |
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…fo_property.py` (pythonGH-136384) (cherry picked from commit db699db) Co-authored-by: sobolevn <mail@sobolevn.me>
GH-136407 is a backport of this pull request to the 3.14 branch. |
…fo_property.py` (pythonGH-136384) (cherry picked from commit db699db) Co-authored-by: sobolevn <mail@sobolevn.me>
GH-136408 is a backport of this pull request to the 3.13 branch. |
Thanks for the fix! |
…fo_property.py` (python#136384)
…fo_property.py` (python#136384)
…fo_property.py` (python#136384)
CC @kulikjak
test_zoneinfo_property.py
misses tests with allpickle
protocols #136297