xhochy / fletcher

Pandas ExtensionDType/Array backed by Apache Arrow

Home Page:https://fletcher.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.