gentoo/dev-python/pydiffx/files/pydiffx-1.1-fix-py3.12.patch
Arthur Zamarin 9cc4822912
dev-python/pydiffx: enable py3.12
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2023-06-06 20:39:17 +03:00

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