You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying example: test_b(
string='',
)
Traceback (most recent call last):
File ".../demo.py", line 14, in test_b
string.encode("037")
File ".venv/lib/python3.10/site-packages/crosshair/libimpl/builtinslib.py", line 2691, in encodereturn codecs.encode(self, encoding, errors)
File ".venv/lib/python3.10/site-packages/crosshair/libimpl/codecslib.py", line 19, in _encode
(out, _len_consumed) = _getencoder(encoding)(obj, errors)
File ".../3.10.11/lib/python3.10/encodings/cp037.py", line 12, in encodereturn codecs.charmap_encode(input,errors,encoding_table)
TypeError: charmap_encode() argument 1 must be str, not LazyIntSymbolicStr
...
hypothesis.errors.Flaky: Inconsistent results from replaying a failing test case!
last: INTERESTING from TypeError at .../3.10.11/lib/python3.10/encodings/cp037.py:12
this: VALID
Found via hypothesis:
Looks like string-encoding wants to receive exactly a
str
, meaning it crashes under crosshair:representative traceback:
Originally posted by @Zac-HD in HypothesisWorks/hypothesis#4034 (comment)
The text was updated successfully, but these errors were encountered: