-
Notifications
You must be signed in to change notification settings - Fork 587
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
hypothesis 5.4.0 broken on python3.5.2 on Linux #2334
Comments
My entire
is |
hypothesis/hypothesis-python/src/hypothesis/internal/compat.py Lines 75 to 82 in b942262
I think we just need a another try-except block, so it reads: typing_root_type = (typing.TypingMeta, typing.TypeVar) # type: ignore
try:
typing_root_type += (typing._Union,) # type: ignore
except AttributeError:
pass Ugly but hopefully effective... and we should add a Travis job for Python 3.5.2 at the same time. |
@guihao-liang if you're interested in making the patch I'd be happy to review it today 🙂 |
Thanks for your prompt reply! Do you have any suggestions to add the unit test for it? Besides that, If I use version |
What about version |
@Zac-HD, thanks for the prompt reply! If no unit test is needed, please patch it since you already post the answer! for
|
For clarity, I'll link to our Python version policy: "Hypothesis does not officially support anything except the latest patch release of any version of Python it supports". So I'm happy to accept a patch for this if anyone wants to write one, and so long as our existing tests keep passing it doesn't need further justification. However it's a very low priority for me to write, and we plan to drop all versions of Python 3.5 in the next few months regardless. |
Okay, let me do it. |
A known issue in 3.5.2. fixed by python/typing#259 |
hypothesis version in my virtualenv,
Python version,
repro,
The text was updated successfully, but these errors were encountered: