]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39424: Use assertRaisesRegex instead of assertRaisesRegexp. (GH-18277)
authordamani42 <56308939+damani42@users.noreply.github.com>
Thu, 30 Jan 2020 10:26:22 +0000 (11:26 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2020 10:26:22 +0000 (12:26 +0200)
Lib/test/test_signal.py

index 5b072b0c60ee3389d9e689f27ebf6c5c89c47fb6..45553a6a42de7921397a8b81095453a707e98113 100644 (file)
@@ -1289,7 +1289,7 @@ class PidfdSignalTest(unittest.TestCase):
         self.assertEqual(cm.exception.errno, errno.EBADF)
         my_pidfd = os.open(f'/proc/{os.getpid()}', os.O_DIRECTORY)
         self.addCleanup(os.close, my_pidfd)
-        with self.assertRaisesRegexp(TypeError, "^siginfo must be None$"):
+        with self.assertRaisesRegex(TypeError, "^siginfo must be None$"):
             signal.pidfd_send_signal(my_pidfd, signal.SIGINT, object(), 0)
         with self.assertRaises(KeyboardInterrupt):
             signal.pidfd_send_signal(my_pidfd, signal.SIGINT)