Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1477 by acrofou...@gmail.com: Robotdiff fails if test names are not in ASCII
http://code.google.com/p/robotframework/issues/detail?id=1477

I have a set of tests where the names of some tests are not in ASCII (they're in UTF-8). When I try to compare runs with robotdiff.py, it falls over with an encoding error:

Traceback (most recent call last):
  File "utils-build/robotdiff.py", line 275, in <module>
    main(sys.argv[1:])
  File "utils-build/robotdiff.py", line 71, in main
    reporter.report(results)
  File "utils-build/robotdiff.py", line 182, in report
    self._write_row(row)
  File "utils-build/robotdiff.py", line 195, in _write_row
    self._write_name(row)
  File "utils-build/robotdiff.py", line 202, in _write_name
    'title': row.explanation})
File "C:\Python27\Lib\site-packages\robot\utils\markupwriters.py", line 61, in element
    self.content(content, escape)
File "C:\Python27\Lib\site-packages\robot\utils\markupwriters.py", line 53, in content
    self._write(self._escape(content) if escape else content)
File "C:\Python27\Lib\site-packages\robot\utils\markupwriters.py", line 69, in _write
    self.output.write(self._encode(text))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 102: ordinal not in range(128)

Robotframework 2.7.6, robotdiff.py
Python 2.7.3
Windows 7, SP1

Thanks!

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to