From: Jochen Sprickerhof <jspricke@debian.org>
Date: Sat, 15 Oct 2022 08:04:17 +0200
Subject: Fix deprecated syntax

---
 test/test_exit_code.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test_exit_code.py b/test/test_exit_code.py
index bae2be9..3a37063 100644
--- a/test/test_exit_code.py
+++ b/test/test_exit_code.py
@@ -18,7 +18,7 @@ class TestExitCode(unittest.TestCase):
             ofile.write(s)
             ofile.flush()
             sys.argv = ['<ignored>', '--exit-code', tmpfile.name]
-            self.assertRaisesRegexp(SystemExit, '0', self.run_action)
+            self.assertRaisesRegex(SystemExit, '0', self.run_action)
 
     def test_exit_code_fail(self):
         s = "raise RuntimeError('I am not working nicely')"
@@ -27,7 +27,7 @@ class TestExitCode(unittest.TestCase):
             ofile.write(s)
             ofile.flush()
             sys.argv = ['<ignored>', '--exit-code', tmpfile.name]
-            self.assertRaisesRegexp(SystemExit, '1', self.run_action)
+            self.assertRaisesRegex(SystemExit, '1', self.run_action)
 
     def test_no_exit_code_success(self):
         s = "raise RuntimeError('I am not working nicely')"
