summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authordamani42 <56308939+damani42@users.noreply.github.com>2020-01-30 10:26:22 (GMT)
committerGitHub <noreply@github.com>2020-01-30 10:26:22 (GMT)
commit38c878b56cff997de8fb04a586c963039b69b414 (patch)
tree8a51edf156932c9ce7097fec9558e198e0cfcfb8 /Lib
parent1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e (diff)
downloadcpython-38c878b56cff997de8fb04a586c963039b69b414.zip
cpython-38c878b56cff997de8fb04a586c963039b69b414.tar.gz
cpython-38c878b56cff997de8fb04a586c963039b69b414.tar.bz2
bpo-39424: Use assertRaisesRegex instead of assertRaisesRegexp. (GH-18277)
Diffstat (limited to 'Lib')
-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 5b072b0..45553a6 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)