diff options
author | damani42 <56308939+damani42@users.noreply.github.com> | 2020-01-30 10:26:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 10:26:22 (GMT) |
commit | 38c878b56cff997de8fb04a586c963039b69b414 (patch) | |
tree | 8a51edf156932c9ce7097fec9558e198e0cfcfb8 /Lib | |
parent | 1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e (diff) | |
download | cpython-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.py | 2 |
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) |