Skip to content

Commit

Permalink
Use six.text_type rather than a unicode literal.
Browse files Browse the repository at this point in the history
  • Loading branch information
coddingtonbear committed Feb 3, 2014
1 parent 546a9de commit e944599
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion taskw/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import dateutil.tz
from nose.tools import eq_
import pytz
import six

from taskw.utils import (
decode_task, encode_task, encode_task_experimental, DATE_FORMAT
Expand Down Expand Up @@ -68,7 +69,11 @@ def test_with_backslashes(self):
eq_(r, expected)

def test_with_unicode(self):
expected = {u'andthis': u'has a fucking \\backslash in it'}
expected = {
six.text_type('andthis'): (
six.text_type('has a fucking \\backslash in it')
)
}
line = r'[andthis:"has a fucking \\backslash in it"]'
r = decode_task(line)
eq_(r, expected)
Expand Down

0 comments on commit e944599

Please sign in to comment.