-
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 breaks pytest on Python 3.8 #1943
Labels
bug
something is clearly wrong here
Comments
Ah, it seems that this is due to this. I'm fairly sure the order of arguments in a code object's constructor is not part of the public interface, and |
pganssle
added a commit
to pganssle/hypothesis
that referenced
this issue
Apr 29, 2019
PEP 570 adds "positional only" arguments to Python, which changes the code object constructor. This adds support for Python 3.8. Fixes GH HypothesisWorks#1943: HypothesisWorks#1943
pganssle
added a commit
to pganssle/hypothesis
that referenced
this issue
Apr 29, 2019
PEP 570 adds "positional only" arguments to Python, which changes the code object constructor. This adds support for Python 3.8. Fixes GH HypothesisWorks#1943: HypothesisWorks#1943
pganssle
added a commit
to pganssle/hypothesis
that referenced
this issue
Apr 29, 2019
PEP 570 adds "positional only" arguments to Python, which changes the code object constructor. This adds support for Python 3.8. Fixes GH HypothesisWorks#1943: HypothesisWorks#1943
noritada
added a commit
to noritada/commonmark.py
that referenced
this issue
Sep 6, 2020
The reason of upgrade is that older versions of Hypothesis are incompatible with Python 3.8 and commonmark's tests failed: % python commonmark/tests/unit_tests.py Traceback (most recent call last): File "commonmark/tests/unit_tests.py", line 6, in <module> from hypothesis import given, example : File "/path/to/virtualenv/lib/python3.8/site-packages/hypothesis/internal/compat.py", line 373, in update_code_location return type(code)(*unpacked) TypeError: an integer is required (got type bytes) HypothesisWorks/hypothesis#1943
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Testing against Python version:
Python 3.8.0a3+ (heads/master:be6dbfb, Apr 29 2019, 14:45:16)
, if you installpytest
andhypothesis
together in a virtualenv and runpytest
at all (even in an empty directory), it throws an error:The full traceback is here, in a
details
block:I'm not sure if this is a bug in hypothesis or a bug in CPython. It does suggest that adding a Python 3.8 nightly build to your CI matrix may be worthwhile, though.
The text was updated successfully, but these errors were encountered: