diff options
| author | Guido van Rossum <guido@python.org> | 2022-09-17 21:12:45 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-17 21:12:45 (GMT) |
| commit | 487135a396a504482ae3a7e9c7f80a44627a5a3f (patch) | |
| tree | ecd59a74af59759d07477126b7e8a340274c6ec4 /Lib/test/test_asyncio/test_unix_events.py | |
| parent | 7e36abbb7815b14777c207dba0fe6fcd41d6d37a (diff) | |
| download | cpython-487135a396a504482ae3a7e9c7f80a44627a5a3f.zip cpython-487135a396a504482ae3a7e9c7f80a44627a5a3f.tar.gz cpython-487135a396a504482ae3a7e9c7f80a44627a5a3f.tar.bz2 | |
Revert "gh-87079: Warn on unintended signal wakeup fd override in `asyncio` (#96807)" (#96898)
This reverts commit 05878106989c6f5b9dd35a6c15a21bee59312827.
Reason: This broke buildbots (some warnings added by that commit are turned to errors in the SSL buildbot).
Repro: ./python Lib/test/ssltests.py
Diffstat (limited to 'Lib/test/test_asyncio/test_unix_events.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_unix_events.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index 1ec627f..5bad21e 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -89,17 +89,6 @@ class SelectorEventLoopSignalTests(test_utils.TestCase): signal.SIGINT, lambda: True) @mock.patch('asyncio.unix_events.signal') - def test_add_signal_handler_setup_warn(self, m_signal): - m_signal.NSIG = signal.NSIG - m_signal.valid_signals = signal.valid_signals - m_signal.set_wakeup_fd.return_value = -1000 - - with self.assertWarnsRegex( - ResourceWarning, 'Signal wakeup fd was already set' - ): - self.loop.add_signal_handler(signal.SIGINT, lambda: True) - - @mock.patch('asyncio.unix_events.signal') def test_add_signal_handler_coroutine_error(self, m_signal): m_signal.NSIG = signal.NSIG @@ -225,19 +214,6 @@ class SelectorEventLoopSignalTests(test_utils.TestCase): self.assertTrue(m_logging.info) @mock.patch('asyncio.unix_events.signal') - def test_remove_signal_handler_cleanup_warn(self, m_signal): - m_signal.NSIG = signal.NSIG - m_signal.valid_signals = signal.valid_signals - self.loop.add_signal_handler(signal.SIGHUP, lambda: True) - - m_signal.set_wakeup_fd.return_value = -1000 - - with self.assertWarnsRegex( - ResourceWarning, 'Got unexpected signal wakeup fd' - ): - self.loop.remove_signal_handler(signal.SIGHUP) - - @mock.patch('asyncio.unix_events.signal') def test_remove_signal_handler_error(self, m_signal): m_signal.NSIG = signal.NSIG m_signal.valid_signals = signal.valid_signals |
