robotframework-lint icon indicating copy to clipboard operation
robotframework-lint copied to clipboard

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

Open aleskarova opened this issue 8 years ago • 1 comments

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)

aleskarova avatar Feb 21 '17 11:02 aleskarova

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

boakley avatar Feb 21 '17 15:02 boakley