Skip to content

Commit 7742309

Browse files
committed
replace deprecated test method
1 parent 61d477f commit 7742309

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/tinify_client_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ def test_should_raise_server_error(self):
165165

166166
with self.assertRaises(ServerError) as context:
167167
Client('key').request('GET', '/')
168-
169-
msg = r'Error while parsing response: .* \(HTTP 543/ParseError\)'
170-
self.assertRegexpMatches(str(context.exception), msg)
168+
msg = r'Error while parsing response: .* \(HTTP 543/ParseError\)'
169+
self.assertRegex(str(context.exception), msg)
171170

172171
class TinifyClientRequestWithBadServerResponseOnce(TestHelper):
173172
def test_should_issue_request(self):

0 commit comments

Comments
 (0)