Skip to content

Commit

Permalink
Fixed u-string literal?
Browse files Browse the repository at this point in the history
  • Loading branch information
arekbulski committed Aug 24, 2016
1 parent 6a12a11 commit 5c42c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_parse(self):

def test_parse_utf8(self):
s = String("foo", 12, encoding="utf8")
self.assertEqual(s.parse(b"hello joh\xd4\x83n"), "hello joh\u0503n")
self.assertEqual(s.parse(b"hello joh\xd4\x83n"), "hello joh\u0503n".decode("utf-8"))

def test_parse_padded(self):
s = String("foo", 10, padchar=b"X", paddir="right")
Expand Down

0 comments on commit 5c42c61

Please sign in to comment.