gh-136297: Fix hypothesis and subTest usage in test_zoneinfo_property.py#136384
gh-136297: Fix hypothesis and subTest usage in test_zoneinfo_property.py#136384sobolevn merged 5 commits intopython:mainfrom
hypothesis and subTest usage in test_zoneinfo_property.py#136384Conversation
…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. |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
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 |
kulikjak
left a comment
There was a problem hiding this comment.
Thanks! I retested the changes and the test passes.
| # (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.
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.
Ok, I will open a new issue about it.
|
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)
…fo_property.py` (python#136384)
…fo_property.py` (python#136384)
CC @kulikjak
test_zoneinfo_property.pymisses tests with allpickleprotocols #136297