Closed jobh closed 5 months ago
I think the latter is very likely to be https://github.com/HypothesisWorks/hypothesis/pull/4022, seems to be fixed with that branch
And I just pushed CrossHair v0.0.56 which should remove the sre_parse deprecation warnings (thanks for the suggested fix!).
I can confirm both these issues are resolved, with the post-test-case-hook-fix
branch and crosshair-tool=0.0.56
. Thanks!
Although the warning is replaced by this on Python 3.12:
File "/home/jobh/mambaforge/envs/hyp/lib/python3.12/site-packages/crosshair/libimpl/builtinslib.py", line 3625, in <module>
class BytesLike(collections.abc.ByteString, AbcString, CrossHairValue):
[...]
DeprecationWarning: 'collections.abc.ByteString' is deprecated and slated for removal in Python 3.14
sorry :-) Feel free to close this issue, especially if python 3.12 is not a supported platform (yet).
Heh, don't apologize - I just noticed the same; please hold. 3.12 isn't less supported than other versions ... we run the full test suite on 3.12, but don't have warnings on. 😅
Thanks @pschanely! It works perfectly now.
Hi,
I was curious to try hypothesis-crosshair, this is just reporting some issues which popped up in my first attempt.
1. Import of deprecated package
I think this package should be imported as
re._parser
in python 3.11+. Next, with-Wignore
:2. Error on first run
Interestingly, this failure goes away if I run again (until the
.hypothesis
db directory is removed). So it seems that the example has been found, and has been recorded by hypothesis, before the error happens.(yay!)