Browse Source

Fix an unit test fails in python 2.5 for issue #31

Matthew Wang 11 years ago
parent
commit
46d9e21076
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/test_cdiff.py

+ 1
- 1
tests/test_cdiff.py View File

78
         self.assertEqual('hello', cdiff.decode(utext))
78
         self.assertEqual('hello', cdiff.decode(utext))
79
 
79
 
80
     def test_malformed_utf8(self):
80
     def test_malformed_utf8(self):
81
-        text = b'\x80\x02q\x01(U'
81
+        text = '\x80\x02q\x01(U'
82
         self.assertEqual(text, cdiff.decode(text))
82
         self.assertEqual(text, cdiff.decode(text))
83
 
83
 
84
 
84