Skip to content

Commit

Permalink
bpo-39424: Use assertRaisesRegex instead of assertRaisesRegexp. (pyth…
Browse files Browse the repository at this point in the history
  • Loading branch information
damani42 authored Jan 30, 2020
1 parent 1f44e77 commit 38c878b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def test_pidfd_send_signal(self):
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)
Expand Down

0 comments on commit 38c878b

Please sign in to comment.