We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61d477f commit 7742309Copy full SHA for 7742309
1 file changed
test/tinify_client_test.py
@@ -165,9 +165,8 @@ def test_should_raise_server_error(self):
165
166
with self.assertRaises(ServerError) as context:
167
Client('key').request('GET', '/')
168
-
169
- msg = r'Error while parsing response: .* \(HTTP 543/ParseError\)'
170
- self.assertRegexpMatches(str(context.exception), msg)
+ msg = r'Error while parsing response: .* \(HTTP 543/ParseError\)'
+ self.assertRegex(str(context.exception), msg)
171
172
class TinifyClientRequestWithBadServerResponseOnce(TestHelper):
173
def test_should_issue_request(self):
0 commit comments