Skip to content

UnicodeDecodeError with "И" letter #89

@Karpovich-alex

Description

@Karpovich-alex

There is some trouble with "И" letter in comments or strings.
You can reproduce this error with code
print("И")
And you will get
" File "C:\ ...\venv\lib\site-packages\flake8_pytest.py", line 33, in run
noqa = _get_noqa_lines(file_to_check.readlines())
File "C:\ ...\Python\Python310\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 8: character maps to <undefined>" error.
But with letter "и" it goes well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions