Skip to content

Commit 35c8216

Browse files
committed
chore: drop 'u"' prefixes for text
1 parent 78caa92 commit 35c8216

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ def test_from_http_response_bad_json_content():
138138
def test_from_http_response_json_unicode_content():
139139
response = make_response(
140140
json.dumps(
141-
{"error": {"message": u"\u2019 message", "errors": ["1", "2"]}}
141+
{"error": {"message": "\u2019 message", "errors": ["1", "2"]}}
142142
).encode("utf-8")
143143
)
144144

145145
exception = exceptions.from_http_response(response)
146146

147147
assert isinstance(exception, exceptions.NotFound)
148148
assert exception.code == http.client.NOT_FOUND
149-
assert exception.message == u"POST https://example.com/: \u2019 message"
149+
assert exception.message == "POST https://example.com/: \u2019 message"
150150
assert exception.errors == ["1", "2"]
151151

152152

0 commit comments

Comments
 (0)