Tests failing occasionally with "surrogates not allowed"
xhochy opened this issue · comments
________________________________ test_utf8_size ________________________________
> ???
tests/test_text.py:430:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
char = '\ud800'
@settings(deadline=None)
@given(char=st.characters())
def test_utf8_size(char):
> char_bytes = char.encode("utf-8")
E UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in position 0: surrogates not allowed
tests/test_text.py:432: UnicodeEncodeError
---------------------------------- Hypothesis ----------------------------------
Falsifying example: test_utf8_size(
char='\ud800',
)
Should be fixed in master.