This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-01-22.16:56:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579712181.32.0.0974422649306.issue39424@roundup.psfhosted.org>
In-reply-to
Content
test_signal.test_pidfd_send_signal() should use assertRaisesRegex() rather than assertRaisesRegexp():

$ ./python -Werror -m test -v test_signal -m test_pidfd_send_signal 
(...)
======================================================================
ERROR: test_pidfd_send_signal (test.test_signal.PidfdSignalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vstinner/python/master/Lib/test/test_signal.py", line 1292, in test_pidfd_send_signal
    with self.assertRaisesRegexp(TypeError, "^siginfo must be None$"):
  File "/home/vstinner/python/master/Lib/unittest/case.py", line 1390, in deprecated_func
    warnings.warn(
DeprecationWarning: Please use assertRaisesRegex instead.
History
Date User Action Args
2020-01-22 16:56:21vstinnersetrecipients: + vstinner
2020-01-22 16:56:21vstinnersetmessageid: <1579712181.32.0.0974422649306.issue39424@roundup.psfhosted.org>
2020-01-22 16:56:21vstinnerlinkissue39424 messages
2020-01-22 16:56:21vstinnercreate