mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-22 21:37:35 -08:00
15 lines
565 B
Diff
15 lines
565 B
Diff
https://github.com/beanbaginc/diffx/pull/5
|
|
From: Arthur Zamarin <arthurzam@gentoo.org>
|
|
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
|