summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordamani42 <56308939+damani42@users.noreply.github.com>2020-01-30 11:26:22 +0100
committerGitHub <noreply@github.com>2020-01-30 12:26:22 +0200
commit38c878b56cff997de8fb04a586c963039b69b414 (patch)
tree8a51edf156932c9ce7097fec9558e198e0cfcfb8
parent1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e (diff)
downloadcpython-git-38c878b56cff997de8fb04a586c963039b69b414.tar.gz
bpo-39424: Use assertRaisesRegex instead of assertRaisesRegexp. (GH-18277)
-rw-r--r--Lib/test/test_signal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 5b072b0c60..45553a6a42 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -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)