boakley / robotframework-lint

Linter for robot framework plain text files
Apache License 2.0
126 stars 48 forks source link

UnicodeError when there are non-ASCII symbols in test-case names #35

Open aleskarova opened 7 years ago

aleskarova commented 7 years ago

When I use non-ASCII symbols in test-case, test-suite names, tags, etc. which are included in rflint output, text of UnicodeError appears instead of rflint message (environment: python 2.7)

Test-case example:

*** Test Cases ***

 Пример тест-кейса.
    [Tags]   example
    Log   Test-case with non-ASCII symbols in its name.

rflint output:

$ rflint example.robot 
+ example.robot
'ascii' codec can't encode characters in position 22-27: ordinal not in range(128)

Expected output:

$ rflint example.robot 
+ example.robot
W: 14, 0: '.' in testcase name 'Пример тест-кейса.' (PeriodInTestName)
boakley commented 7 years ago

Thanks for the bug report and test case. I've found the error and will be providing a fix soon.