Skip to content

Commit

Permalink
thirdparty:test_dammit: Fix failure caused by chardet 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chfoo committed Oct 8, 2014
1 parent 7543fe0 commit 75bbfe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpull/thirdparty/test_dammit.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def test_smart_quotes_to_ascii(self):
dammit.unicode_markup, """<foo>''""</foo>""")

def test_detect_utf8(self):
utf8 = b"\xc3\xa9"
utf8 = b"\xc3\xa9\xc3\xa9"
dammit = UnicodeDammit(utf8)
self.assertEqual(dammit.unicode_markup, '\xe9')
self.assertEqual(dammit.unicode_markup, '\xe9\xe9')
self.assertEqual(dammit.original_encoding.lower(), 'utf-8')

def test_convert_hebrew(self):
Expand Down

0 comments on commit 75bbfe5

Please sign in to comment.