Skip to content

Commit

Permalink
Fix unicode issues with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
singingwolfboy committed Mar 7, 2014
1 parent 396d845 commit 642f1bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions willie/modules/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Licensed under the Eiffel Forum License 2.
"""
from __future__ import unicode_literals
from willie.module import commands, example, NOLIMIT
import re

Expand Down
2 changes: 1 addition & 1 deletion willie/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test():
assert len(wrapper.output) == len(results)
for result, output in zip(results, wrapper.output):
if type(output) is bytes:
output = output.decode()
output = output.decode('utf-8')
if use_regexp:
if not re.match(result, output):
assert result == output
Expand Down

0 comments on commit 642f1bd

Please sign in to comment.