we don't properly encode/decode matchers values to utf-8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
Undecided
|
Unassigned | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Description:
we don't properly encode values in autopilot/matchers
we should check the type of new_value or expected_value in autopilot/
example of failing test from https:/
=======
ERROR: unity.tests.
-------
_StringException: traceback-1: {{{
Traceback (most recent call last):
File "/home/
self.
File "/home/
self.
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
return Mismatch(str(e))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 77-79: ordinal not in range(128)
}}}
Related branches
- Thomi Richards (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
- Chris Gagnon (community): Needs Resubmitting
- Brandon Schaefer (community): Approve
-
Diff: 107 lines (+60/-4)3 files modifiedautopilot/introspection/dbus.py (+9/-1)
autopilot/matchers/__init__.py (+1/-1)
autopilot/tests/unit/test_matchers.py (+50/-2)
Changed in autopilot: | |
status: | Fix Committed → Fix Released |
milestone: | none → 1.4 |
Fix committed into lp:autopilot at revision 305, scheduled for release in autopilot, milestone 1.3.2