https://github.com/beanbaginc/diffx/pull/5 From: Arthur Zamarin Date: Tue, 6 Jun 2023 20:32:44 +0300 Subject: [PATCH] fix usage of deprecated assertRaisesRegex --- a/pydiffx/tests/testcases.py +++ b/pydiffx/tests/testcases.py @@ -65,5 +65,5 @@ def assertMultiLineBytesEqual(self, first, second, line_endings='unix'): @contextmanager def assertRaisesMessage(self, exception, message): - with self.assertRaisesRegexp(exception, re.escape(message)): + with self.assertRaises(exception, msg=message): yield