mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
23 lines
861 B
Diff
23 lines
861 B
Diff
Patch-Source: https://github.com/beanbaginc/diffx/pull/5
|
|
--
|
|
From a122913a8b4e8194aecefc657c2f8aedf9c0f42c Mon Sep 17 00:00:00 2001
|
|
From: Arthur Zamarin <arthurzam@gentoo.org>
|
|
Date: Tue, 6 Jun 2023 20:32:44 +0300
|
|
Subject: [PATCH] fix usage of deprecated assertRaisesRegex
|
|
|
|
---
|
|
python/pydiffx/tests/testcases.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/python/pydiffx/tests/testcases.py b/python/pydiffx/tests/testcases.py
|
|
index fdcbf99..6421569 100644
|
|
--- 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
|