mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fixed tests for python 2.x.
This commit is contained in:
+1
-1
@@ -282,7 +282,7 @@ class TestGuessJSONUTF:
|
||||
('utf-32-le', 'utf-32')
|
||||
))
|
||||
def test_guess_by_bom(self, encoding, expected):
|
||||
data = '\ufeff{}'.encode(encoding)
|
||||
data = u'\ufeff{}'.encode(encoding)
|
||||
assert guess_json_utf(data) == expected
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user