+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-proxy.py-2.4.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-proxy.py-2.4.3-2.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -m 'not network' -q ============================= test session starts ============================== platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0 rootdir: /home/tkloczko/rpmbuild/BUILD/proxy.py-2.4.3 configfile: pytest.ini testpaths: tests/ plugins: anyio-4.2.0, asyncio-0.23.2, mock-3.12.0 asyncio: mode=strict collected 232 items tests/test_main.py ...... [ 2%] tests/test_set_open_file_limit.py ... [ 3%] tests/common/test_flags.py .............. [ 9%] tests/common/test_pki.py .......... [ 14%] tests/common/test_text_bytes.py ...... [ 16%] tests/common/test_utils.py ..... [ 18%] tests/core/test_acceptor.py .. [ 19%] tests/core/test_acceptor_pool.py . [ 20%] tests/core/test_conn_pool.py .... [ 21%] tests/core/test_connection.py .......... [ 26%] tests/core/test_event_dispatcher.py ... [ 27%] tests/core/test_event_manager.py . [ 28%] tests/core/test_event_queue.py ... [ 29%] tests/core/test_event_subscriber.py . [ 29%] tests/core/test_listener.py .. [ 30%] tests/core/test_listener_pool.py ... [ 31%] tests/http/test_protocol_handler.py EException ignored in: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/_pytest/unraisableexception.py", line 59, in __exit__ del self.unraisable ResourceWarning: unclosed Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/_pytest/unraisableexception.py", line 59, in __exit__ del self.unraisable ResourceWarning: unclosed EException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EE [ 35%] tests/http/test_responses.py ..... [ 37%] tests/http/test_url.py .................. [ 45%] tests/http/exceptions/test_http_proxy_auth_failed.py EException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) E [ 46%] tests/http/exceptions/test_http_request_rejected.py ... [ 48%] tests/http/parser/test_chunk_parser.py ... [ 49%] tests/http/parser/test_http_parser.py .................................. [ 64%] .......... [ 68%] tests/http/parser/test_proxy_protocol.py ........ [ 71%] tests/http/parser/test_tls_parser.py .. [ 72%] tests/http/proxy/test_http2.py . [ 73%] tests/http/proxy/test_http_proxy.py .EEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EE............. [ 80%] tests/http/proxy/test_http_proxy_tls_interception.py .E [ 80%] tests/http/web/test_web_server.py .EEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EE [ 83%] tests/http/websocket/test_websocket_client.py ... [ 84%] tests/http/websocket/test_websocket_frame.py .. [ 85%] tests/integration/test_integration.py EEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEEEEEEEEEEE [ 91%] tests/plugin/test_http_proxy_plugins.py EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEEEE [ 96%] tests/plugin/test_http_proxy_plugins_with_tls_interception.py EException ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) EEE [ 96%] tests/socks/test_handler.py . [ 97%] tests/socks/test_packet.py .. [ 98%] tests/testing/test_embed.py ... [ 99%] tests/testing/test_test_case.py . [100%] ==================================== ERRORS ==================================== _ ERROR at setup of TestHttpProtocolHandlerWithoutServerMock.test_proxy_connection_failed _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 14 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 14 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProtocolHandlerWithoutServerMock.test_proxy_connection_failed _ cls = func = . at 0x7f3d61b5fca0> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: "Callable[[], TResult]", when: "Literal['collect', 'setup', 'call', 'teardown']", reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() cls = duration = 0.0016798640135675669 excinfo = \n') tblen=7> func = . at 0x7f3d61b5fca0> precise_start = 530516.136061115 precise_stop = 530516.137740979 reraise = (, ) result = None start = 1703489548.6955585 stop = 1703489548.69724 when = 'teardown' /usr/lib/python3.8/site-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/_pytest/runner.py:262: in lambda: ihook(item=item, **kwds), when=when, reraise=reraise ihook = item = kwds = {'nextitem': } /usr/lib/python3.8/site-packages/pluggy/_hooks.py:493: in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) firstresult = False kwargs = {'item': , 'nextitem': } self = /usr/lib/python3.8/site-packages/pluggy/_manager.py:115: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) firstresult = False hook_name = 'pytest_runtest_teardown' kwargs = {'item': , 'nextitem': } methods = [>] self = <_pytest.config.PytestPluginManager object at 0x7f3d63847760> /usr/lib/python3.8/site-packages/_pytest/unraisableexception.py:93: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: yield if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib64/python3.8/asyncio/base_events.py", line 654, in __del__ E _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self) E ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False> cm = <_pytest.unraisableexception.catch_unraisable_exception object at 0x7f3d61148100> err_msg = 'Exception ignored in' msg = 'Exception ignored in: \n\nTraceback (most recent call last):\n Fil..., source=self)\nResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>\n' /usr/lib/python3.8/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning _ ERROR at setup of TestHttpProtocolHandlerWithoutServerMock.test_proxy_authentication_failed _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProtocolHandlerWithoutServerMock.test_proxy_authentication_failed _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProtocolHandlerWithoutServerMock.test_proxy_bails_out_for_unknown_schemes _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProtocolHandlerWithoutServerMock.test_proxy_bails_out_for_unknown_schemes _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProtocolHandlerWithoutServerMock.test_proxy_bails_out_for_sip_request_lines _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProtocolHandlerWithoutServerMock.test_proxy_bails_out_for_sip_request_lines _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError ___________ ERROR at setup of TestHttpProtocolHandler.test_http_get ____________ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 20 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 20 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError __________ ERROR at teardown of TestHttpProtocolHandler.test_http_get __________ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError __________ ERROR at setup of TestHttpProtocolHandler.test_http_tunnel __________ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError ________ ERROR at teardown of TestHttpProtocolHandler.test_http_tunnel _________ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProtocolHandler.test_authenticated_proxy_http_get __ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProtocolHandler.test_authenticated_proxy_http_get _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProtocolHandler.test_authenticated_proxy_http_tunnel _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 20 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 20 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProtocolHandler.test_authenticated_proxy_http_tunnel _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyAuthFailed.test_proxy_auth_fails_without_cred _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyAuthFailed.test_proxy_auth_fails_without_cred _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyAuthFailed.test_proxy_auth_fails_with_invalid_cred _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyAuthFailed.test_proxy_auth_fails_with_invalid_cred _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyAuthFailed.test_proxy_auth_works_with_valid_cred _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 20 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 20 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyAuthFailed.test_proxy_auth_works_with_valid_cred _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyAuthFailed.test_proxy_auth_works_with_mixed_case_basic_string _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyAuthFailed.test_proxy_auth_works_with_mixed_case_basic_string _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPlugin.test_proxy_plugin_on_and_before_upstream_connection _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPlugin.test_proxy_plugin_on_and_before_upstream_connection _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPlugin.test_proxy_plugin_before_upstream_connection_can_teardown _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPlugin.test_proxy_plugin_before_upstream_connection_can_teardown _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError __________ ERROR at teardown of TestHttpProxyTlsInterception.test_e2e __________ cls = func = . at 0x7f3d6126dee0> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: "Callable[[], TResult]", when: "Literal['collect', 'setup', 'call', 'teardown']", reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() cls = duration = 0.032661570934578776 excinfo = \n') tblen=7> func = . at 0x7f3d6126dee0> precise_start = 530520.075535043 precise_stop = 530520.108196614 reraise = (, ) result = None start = 1703489552.635033 stop = 1703489552.6676962 when = 'teardown' /usr/lib/python3.8/site-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/_pytest/runner.py:262: in lambda: ihook(item=item, **kwds), when=when, reraise=reraise ihook = item = kwds = {'nextitem': } /usr/lib/python3.8/site-packages/pluggy/_hooks.py:493: in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) firstresult = False kwargs = {'item': , 'nextitem': } self = /usr/lib/python3.8/site-packages/pluggy/_manager.py:115: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) firstresult = False hook_name = 'pytest_runtest_teardown' kwargs = {'item': , 'nextitem': } methods = [>] self = <_pytest.config.PytestPluginManager object at 0x7f3d63847760> /usr/lib/python3.8/site-packages/_pytest/unraisableexception.py:93: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: yield if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib64/python3.8/unittest/mock.py", line 2030, in _mock_set_magics E setattr(_type, entry, MagicProxy(entry, self)) E ResourceWarning: unclosed cm = <_pytest.unraisableexception.catch_unraisable_exception object at 0x7f3d60cbf0a0> err_msg = 'Exception ignored in' msg = 'Exception ignored in: \n\nTr...nResourceWarning: unclosed \n' /usr/lib/python3.8/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning _ ERROR at setup of TestWebServerPluginWithPacFilePlugin.test_pac_file_served_from_disk[/home/tkloczko/rpmbuild/BUILD/proxy.py-2.4.3/helper/proxy.pac] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestWebServerPluginWithPacFilePlugin.test_pac_file_served_from_disk[/home/tkloczko/rpmbuild/BUILD/proxy.py-2.4.3/helper/proxy.pac] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestWebServerPluginWithPacFilePlugin.test_pac_file_served_from_disk[function FindProxyForURL(url, host) { return "PROXY localhost:8899; DIRECT"; }] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestWebServerPluginWithPacFilePlugin.test_pac_file_served_from_disk[function FindProxyForURL(url, host) { return "PROXY localhost:8899; DIRECT"; }] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError __ ERROR at setup of TestStaticWebServerPlugin.test_static_web_server_serves ___ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestStaticWebServerPlugin.test_static_web_server_serves _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestStaticWebServerPlugin.test_static_web_server_serves_404 _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestStaticWebServerPlugin.test_static_web_server_serves_404 _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError __ ERROR at setup of TestWebServerPlugin.test_default_web_server_returns_404 ___ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 20 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 20 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestWebServerPlugin.test_default_web_server_returns_404 _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError ________________ ERROR at setup of test_integration[--threaded] ________________ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError ---------------------------- Captured stderr setup ----------------------------- /bin/bash: line 1: python: command not found make: *** [Makefile:68: ca-certificates] Error 127 _____ ERROR at setup of test_integration[--threadless --local-executor 0] ______ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _______________ ERROR at setup of test_integration[--threadless] _______________ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_https_integration[--threaded --key-file /tmp/certificates/https-key.pem --cert-file /tmp/certificates/https-signed-cert.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_https_integration[--threadless --local-executor 0 --key-file /tmp/certificates/https-key.pem --cert-file /tmp/certificates/https-signed-cert.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_https_integration[--threadless --key-file /tmp/certificates/https-key.pem --cert-file /tmp/certificates/https-signed-cert.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_integration_with_interception_flags[--threaded --ca-cert-file /tmp/certificates/ca-cert.pem --ca-key-file /tmp/certificates/ca-key.pem --ca-signing-key /tmp/certificates/ca-signing-key.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_integration_with_interception_flags[--threadless --local-executor 0 --ca-cert-file /tmp/certificates/ca-cert.pem --ca-key-file /tmp/certificates/ca-key.pem --ca-signing-key /tmp/certificates/ca-signing-key.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_integration_with_interception_flags[--threadless --ca-cert-file /tmp/certificates/ca-cert.pem --ca-key-file /tmp/certificates/ca-key.pem --ca-signing-key /tmp/certificates/ca-signing-key.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_modify_chunk_response_integration[--threaded --plugin proxy.plugin.ModifyChunkResponsePlugin --ca-cert-file /tmp/certificates/ca-cert-chunk.pem --ca-key-file /tmp/certificates/ca-key-chunk.pem --ca-signing-key /tmp/certificates/ca-signing-key-chunk.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_modify_chunk_response_integration[--threadless --local-executor 0 --plugin proxy.plugin.ModifyChunkResponsePlugin --ca-cert-file /tmp/certificates/ca-cert-chunk.pem --ca-key-file /tmp/certificates/ca-key-chunk.pem --ca-signing-key /tmp/certificates/ca-signing-key-chunk.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_modify_chunk_response_integration[--threadless --plugin proxy.plugin.ModifyChunkResponsePlugin --ca-cert-file /tmp/certificates/ca-cert-chunk.pem --ca-key-file /tmp/certificates/ca-key-chunk.pem --ca-signing-key /tmp/certificates/ca-signing-key-chunk.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_modify_post_response_integration[--threaded --plugin proxy.plugin.ModifyPostDataPlugin --ca-cert-file /tmp/certificates/ca-cert-post.pem --ca-key-file /tmp/certificates/ca-key-post.pem --ca-signing-key /tmp/certificates/ca-signing-key-post.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_modify_post_response_integration[--threadless --local-executor 0 --plugin proxy.plugin.ModifyPostDataPlugin --ca-cert-file /tmp/certificates/ca-cert-post.pem --ca-key-file /tmp/certificates/ca-key-post.pem --ca-signing-key /tmp/certificates/ca-signing-key-post.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of test_modify_post_response_integration[--threadless --plugin proxy.plugin.ModifyPostDataPlugin --ca-cert-file /tmp/certificates/ca-cert-post.pem --ca-key-file /tmp/certificates/ca-key-post.pem --ca-signing-key /tmp/certificates/ca-signing-key-post.pem] _ request = > @pytest.fixture(scope='session', autouse=not IS_WINDOWS) # type: ignore[misc] def _gen_ca_certificates(request: Any) -> None: > check_output([ 'make', 'ca-certificates', '-e', 'CERT_DIR=%s/' % (str(CERT_DIR)), ]) request = > tests/integration/test_integration.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_integration.py:35: in check_output return _check_output(args) args = ['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'] /usr/lib64/python3.8/subprocess.py:415: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, kwargs = {} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) timeout = None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) kwargs = {'stdout': -1}, process = stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' stderr = None, retcode = 2 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance. The returned instance will have attributes args, returncode, stdout and stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them. If check is True and the exit code was non-zero, it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured. If timeout is given, and the process takes too long, a TimeoutExpired exception will be raised. There is an optional argument "input", allowing you to pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally. By default, all communication is in bytes, and therefore any "input" should be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. The other arguments are the same as for the Popen constructor. """ if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPE if capture_output: if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPE with Popen(*popenargs, **kwargs) as process: try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode: > raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/']' returned non-zero exit status 2. capture_output = False check = True input = None kwargs = {'stdout': -1} popenargs = (['make', 'ca-certificates', '-e', 'CERT_DIR=/tmp/certificates/'],) process = retcode = 2 stderr = None stdout = b'# Generate CA key\npython -m proxy.common.pki gen_private_key \\\n\t--private-key-path /tmp/certificates/ca-key.pem\n' timeout = None /usr/lib64/python3.8/subprocess.py:516: CalledProcessError _ ERROR at setup of TestHttpProxyPluginExamples.test_modify_post_data_plugin[test_modify_post_data_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_modify_post_data_plugin[test_modify_post_data_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_proposed_rest_api_plugin[test_proposed_rest_api_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_proposed_rest_api_plugin[test_proposed_rest_api_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_redirect_to_custom_server_plugin[test_redirect_to_custom_server_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_redirect_to_custom_server_plugin[test_redirect_to_custom_server_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_redirect_to_custom_server_plugin_skips_https[test_redirect_to_custom_server_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 20 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 20 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_redirect_to_custom_server_plugin_skips_https[test_redirect_to_custom_server_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_filter_by_upstream_host_plugin[test_filter_by_upstream_host_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_filter_by_upstream_host_plugin[test_filter_by_upstream_host_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_man_in_the_middle_plugin[test_man_in_the_middle_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_man_in_the_middle_plugin[test_man_in_the_middle_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_filter_by_url_regex_plugin[test_filter_by_url_regex_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 20 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 20 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_filter_by_url_regex_plugin[test_filter_by_url_regex_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_shortlink_plugin[test_shortlink_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_shortlink_plugin[test_shortlink_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_shortlink_plugin_unknown[test_shortlink_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamples.test_shortlink_plugin_unknown[test_shortlink_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamples.test_shortlink_plugin_external[test_shortlink_plugin] _ cls = func = . at 0x7f3d5b555af0> when = 'setup' reraise = (, ) @classmethod def from_call( cls, func: "Callable[[], TResult]", when: "Literal['collect', 'setup', 'call', 'teardown']", reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() cls = duration = 0.048179918085224926 excinfo = \n') tblen=7> func = . at 0x7f3d5b555af0> precise_start = 530523.4917389 precise_stop = 530523.539918818 reraise = (, ) result = None start = 1703489556.0512364 stop = 1703489556.0994182 when = 'setup' /usr/lib/python3.8/site-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/_pytest/runner.py:262: in lambda: ihook(item=item, **kwds), when=when, reraise=reraise ihook = item = kwds = {} /usr/lib/python3.8/site-packages/pluggy/_hooks.py:493: in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) firstresult = False kwargs = {'item': } self = /usr/lib/python3.8/site-packages/pluggy/_manager.py:115: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) firstresult = False hook_name = 'pytest_runtest_setup' kwargs = {'item': } methods = [>...pper name='/dev/null' mode='r' encoding='utf-8'>> _state='suspended' _in_suspended=False> _capture_fixture=None>>, ...] self = <_pytest.config.PytestPluginManager object at 0x7f3d63847760> /usr/lib/python3.8/site-packages/_pytest/unraisableexception.py:83: in pytest_runtest_setup yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: yield if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib64/python3.8/unittest/mock.py", line 2076, in __init__ E self.name = name E ResourceWarning: unclosed cm = <_pytest.unraisableexception.catch_unraisable_exception object at 0x7f3d5b3e2a30> err_msg = 'Exception ignored in' msg = 'Exception ignored in: \n\nTr...nResourceWarning: unclosed \n' /usr/lib/python3.8/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning _ ERROR at teardown of TestHttpProxyPluginExamples.test_shortlink_plugin_external[test_shortlink_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamplesWithTlsInterception.test_modify_post_data_plugin[test_modify_post_data_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 13 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 13 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamplesWithTlsInterception.test_modify_post_data_plugin[test_modify_post_data_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 15 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 15 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at setup of TestHttpProxyPluginExamplesWithTlsInterception.test_man_in_the_middle_plugin[test_man_in_the_middle_plugin] _ fixturedef = request = > @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup( fixturedef: FixtureDef, request: SubRequest ) -> Optional[object]: """Adjust the event loop policy when an event loop is produced.""" if fixturedef.argname == "event_loop": # The use of a fixture finalizer is preferred over the # pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once # for each fixture, whereas the hook may be invoked multiple times for # any specific fixture. # see https://github.com/pytest-dev/pytest/issues/5848 _add_finalizers( fixturedef, _close_event_loop, _restore_event_loop_policy(asyncio.get_event_loop_policy()), _provide_clean_event_loop, ) outcome = yield > loop = outcome.get_result() fixturedef = outcome = request = > /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:736: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:950: in event_loop loop = asyncio.get_event_loop_policy().new_event_loop() new_loop_policy = request = > /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 11 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 11 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError _ ERROR at teardown of TestHttpProxyPluginExamplesWithTlsInterception.test_man_in_the_middle_plugin[test_man_in_the_middle_plugin] _ def _provide_clean_event_loop() -> None: # At this point, the event loop for the current thread is closed. # When a user calls asyncio.get_event_loop(), they will get a closed loop. # In order to avoid this side effect from pytest-asyncio, we need to replace # the current loop with a fresh one. # Note that we cannot set the loop to None, because get_event_loop only creates # a new loop, when set_event_loop has not been called. policy = asyncio.get_event_loop_policy() > new_loop = policy.new_event_loop() policy = /usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/asyncio/events.py:656: in new_event_loop return self._loop_factory() self = /usr/lib64/python3.8/asyncio/unix_events.py:54: in __init__ super().__init__(selector) __class__ = selector = None self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:61: in __init__ self._make_self_pipe() __class__ = selector = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:112: in _make_self_pipe self._add_reader(self._ssock.fileno(), self._read_from_self) self = <_UnixSelectorEventLoop running=False closed=False debug=False> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=False debug=False>, fd = 17 callback = > args = (), handle = key = mask = def _add_reader(self, fd, callback, *args): self._check_closed() handle = events.Handle(callback, args, self, None) try: key = self._selector.get_key(fd) except KeyError: self._selector.register(fd, selectors.EVENT_READ, (handle, None)) else: > mask, (reader, writer) = key.events, key.data E ValueError: not enough values to unpack (expected 2, got 0) args = () callback = > fd = 17 handle = key = mask = self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.8/asyncio/selector_events.py:266: ValueError - generated xml file: /home/tkloczko/rpmbuild/BUILD/proxy.py-2.4.3/.tox/tmp/test-results/pytest/results.xml - ============================= slowest 10 durations ============================= 1.03s call tests/core/test_event_subscriber.py::TestEventSubscriber::test_event_subscriber 1.02s call tests/core/test_event_dispatcher.py::TestEventDispatcher::test_empties_queue 0.99s teardown tests/testing/test_embed.py::TestProxyPyEmbedded::test_with_proxy 0.57s teardown tests/http/proxy/test_http2.py::TestHttp2WithProxy::test_http2_via_proxy 0.50s call tests/http/proxy/test_http2.py::TestHttp2WithProxy::test_http2_via_proxy 0.13s call tests/common/test_pki.py::TestPki::test_gen_csr 0.12s call tests/common/test_pki.py::TestPki::test_gen_public_key 0.10s call tests/testing/test_test_case.py::TestTestCase::test_wait_for_server_raises_timeout_error 0.08s call tests/common/test_pki.py::TestPki::test_gen_private_key 0.06s call tests/testing/test_embed.py::TestProxyPyEmbedded::test_proxy_no_vcr =========================== short test summary info ============================ ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandlerWithoutServerMock::test_proxy_connection_failed ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandlerWithoutServerMock::test_proxy_connection_failed ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandlerWithoutServerMock::test_proxy_authentication_failed ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandlerWithoutServerMock::test_proxy_authentication_failed ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandlerWithoutServerMock::test_proxy_bails_out_for_unknown_schemes ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandlerWithoutServerMock::test_proxy_bails_out_for_unknown_schemes ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandlerWithoutServerMock::test_proxy_bails_out_for_sip_request_lines ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandlerWithoutServerMock::test_proxy_bails_out_for_sip_request_lines ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandler::test_http_get ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandler::test_http_get ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandler::test_http_tunnel ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandler::test_http_tunnel ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandler::test_authenticated_proxy_http_get ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandler::test_authenticated_proxy_http_get ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandler::test_authenticated_proxy_http_tunnel ERROR tests/http/test_protocol_handler.py::TestHttpProtocolHandler::test_authenticated_proxy_http_tunnel ERROR tests/http/exceptions/test_http_proxy_auth_failed.py::TestHttpProxyAuthFailed::test_proxy_auth_fails_without_cred ERROR tests/http/exceptions/test_http_proxy_auth_failed.py::TestHttpProxyAuthFailed::test_proxy_auth_fails_without_cred ERROR tests/http/exceptions/test_http_proxy_auth_failed.py::TestHttpProxyAuthFailed::test_proxy_auth_fails_with_invalid_cred ERROR tests/http/exceptions/test_http_proxy_auth_failed.py::TestHttpProxyAuthFailed::test_proxy_auth_fails_with_invalid_cred ERROR tests/http/exceptions/test_http_proxy_auth_failed.py::TestHttpProxyAuthFailed::test_proxy_auth_works_with_valid_cred ERROR tests/http/exceptions/test_http_proxy_auth_failed.py::TestHttpProxyAuthFailed::test_proxy_auth_works_with_valid_cred ERROR tests/http/exceptions/test_http_proxy_auth_failed.py::TestHttpProxyAuthFailed::test_proxy_auth_works_with_mixed_case_basic_string ERROR tests/http/exceptions/test_http_proxy_auth_failed.py::TestHttpProxyAuthFailed::test_proxy_auth_works_with_mixed_case_basic_string ERROR tests/http/proxy/test_http_proxy.py::TestHttpProxyPlugin::test_proxy_plugin_on_and_before_upstream_connection ERROR tests/http/proxy/test_http_proxy.py::TestHttpProxyPlugin::test_proxy_plugin_on_and_before_upstream_connection ERROR tests/http/proxy/test_http_proxy.py::TestHttpProxyPlugin::test_proxy_plugin_before_upstream_connection_can_teardown ERROR tests/http/proxy/test_http_proxy.py::TestHttpProxyPlugin::test_proxy_plugin_before_upstream_connection_can_teardown ERROR tests/http/proxy/test_http_proxy_tls_interception.py::TestHttpProxyTlsInterception::test_e2e ERROR tests/http/web/test_web_server.py::TestWebServerPluginWithPacFilePlugin::test_pac_file_served_from_disk[/home/tkloczko/rpmbuild/BUILD/proxy.py-2.4.3/helper/proxy.pac] ERROR tests/http/web/test_web_server.py::TestWebServerPluginWithPacFilePlugin::test_pac_file_served_from_disk[/home/tkloczko/rpmbuild/BUILD/proxy.py-2.4.3/helper/proxy.pac] ERROR tests/http/web/test_web_server.py::TestWebServerPluginWithPacFilePlugin::test_pac_file_served_from_disk[function FindProxyForURL(url, host) { return "PROXY localhost:8899; DIRECT"; }] ERROR tests/http/web/test_web_server.py::TestWebServerPluginWithPacFilePlugin::test_pac_file_served_from_disk[function FindProxyForURL(url, host) { return "PROXY localhost:8899; DIRECT"; }] ERROR tests/http/web/test_web_server.py::TestStaticWebServerPlugin::test_static_web_server_serves ERROR tests/http/web/test_web_server.py::TestStaticWebServerPlugin::test_static_web_server_serves ERROR tests/http/web/test_web_server.py::TestStaticWebServerPlugin::test_static_web_server_serves_404 ERROR tests/http/web/test_web_server.py::TestStaticWebServerPlugin::test_static_web_server_serves_404 ERROR tests/http/web/test_web_server.py::TestWebServerPlugin::test_default_web_server_returns_404 ERROR tests/http/web/test_web_server.py::TestWebServerPlugin::test_default_web_server_returns_404 ERROR tests/integration/test_integration.py::test_integration[--threaded] - s... ERROR tests/integration/test_integration.py::test_integration[--threadless --local-executor 0] ERROR tests/integration/test_integration.py::test_integration[--threadless] ERROR tests/integration/test_integration.py::test_https_integration[--threaded --key-file /tmp/certificates/https-key.pem --cert-file /tmp/certificates/https-signed-cert.pem] ERROR tests/integration/test_integration.py::test_https_integration[--threadless --local-executor 0 --key-file /tmp/certificates/https-key.pem --cert-file /tmp/certificates/https-signed-cert.pem] ERROR tests/integration/test_integration.py::test_https_integration[--threadless --key-file /tmp/certificates/https-key.pem --cert-file /tmp/certificates/https-signed-cert.pem] ERROR tests/integration/test_integration.py::test_integration_with_interception_flags[--threaded --ca-cert-file /tmp/certificates/ca-cert.pem --ca-key-file /tmp/certificates/ca-key.pem --ca-signing-key /tmp/certificates/ca-signing-key.pem] ERROR tests/integration/test_integration.py::test_integration_with_interception_flags[--threadless --local-executor 0 --ca-cert-file /tmp/certificates/ca-cert.pem --ca-key-file /tmp/certificates/ca-key.pem --ca-signing-key /tmp/certificates/ca-signing-key.pem] ERROR tests/integration/test_integration.py::test_integration_with_interception_flags[--threadless --ca-cert-file /tmp/certificates/ca-cert.pem --ca-key-file /tmp/certificates/ca-key.pem --ca-signing-key /tmp/certificates/ca-signing-key.pem] ERROR tests/integration/test_integration.py::test_modify_chunk_response_integration[--threaded --plugin proxy.plugin.ModifyChunkResponsePlugin --ca-cert-file /tmp/certificates/ca-cert-chunk.pem --ca-key-file /tmp/certificates/ca-key-chunk.pem --ca-signing-key /tmp/certificates/ca-signing-key-chunk.pem] ERROR tests/integration/test_integration.py::test_modify_chunk_response_integration[--threadless --local-executor 0 --plugin proxy.plugin.ModifyChunkResponsePlugin --ca-cert-file /tmp/certificates/ca-cert-chunk.pem --ca-key-file /tmp/certificates/ca-key-chunk.pem --ca-signing-key /tmp/certificates/ca-signing-key-chunk.pem] ERROR tests/integration/test_integration.py::test_modify_chunk_response_integration[--threadless --plugin proxy.plugin.ModifyChunkResponsePlugin --ca-cert-file /tmp/certificates/ca-cert-chunk.pem --ca-key-file /tmp/certificates/ca-key-chunk.pem --ca-signing-key /tmp/certificates/ca-signing-key-chunk.pem] ERROR tests/integration/test_integration.py::test_modify_post_response_integration[--threaded --plugin proxy.plugin.ModifyPostDataPlugin --ca-cert-file /tmp/certificates/ca-cert-post.pem --ca-key-file /tmp/certificates/ca-key-post.pem --ca-signing-key /tmp/certificates/ca-signing-key-post.pem] ERROR tests/integration/test_integration.py::test_modify_post_response_integration[--threadless --local-executor 0 --plugin proxy.plugin.ModifyPostDataPlugin --ca-cert-file /tmp/certificates/ca-cert-post.pem --ca-key-file /tmp/certificates/ca-key-post.pem --ca-signing-key /tmp/certificates/ca-signing-key-post.pem] ERROR tests/integration/test_integration.py::test_modify_post_response_integration[--threadless --plugin proxy.plugin.ModifyPostDataPlugin --ca-cert-file /tmp/certificates/ca-cert-post.pem --ca-key-file /tmp/certificates/ca-key-post.pem --ca-signing-key /tmp/certificates/ca-signing-key-post.pem] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_modify_post_data_plugin[test_modify_post_data_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_modify_post_data_plugin[test_modify_post_data_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_proposed_rest_api_plugin[test_proposed_rest_api_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_proposed_rest_api_plugin[test_proposed_rest_api_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_redirect_to_custom_server_plugin[test_redirect_to_custom_server_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_redirect_to_custom_server_plugin[test_redirect_to_custom_server_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_redirect_to_custom_server_plugin_skips_https[test_redirect_to_custom_server_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_redirect_to_custom_server_plugin_skips_https[test_redirect_to_custom_server_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_filter_by_upstream_host_plugin[test_filter_by_upstream_host_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_filter_by_upstream_host_plugin[test_filter_by_upstream_host_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_man_in_the_middle_plugin[test_man_in_the_middle_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_man_in_the_middle_plugin[test_man_in_the_middle_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_filter_by_url_regex_plugin[test_filter_by_url_regex_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_filter_by_url_regex_plugin[test_filter_by_url_regex_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_shortlink_plugin[test_shortlink_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_shortlink_plugin[test_shortlink_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_shortlink_plugin_unknown[test_shortlink_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_shortlink_plugin_unknown[test_shortlink_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_shortlink_plugin_external[test_shortlink_plugin] ERROR tests/plugin/test_http_proxy_plugins.py::TestHttpProxyPluginExamples::test_shortlink_plugin_external[test_shortlink_plugin] ERROR tests/plugin/test_http_proxy_plugins_with_tls_interception.py::TestHttpProxyPluginExamplesWithTlsInterception::test_modify_post_data_plugin[test_modify_post_data_plugin] ERROR tests/plugin/test_http_proxy_plugins_with_tls_interception.py::TestHttpProxyPluginExamplesWithTlsInterception::test_modify_post_data_plugin[test_modify_post_data_plugin] ERROR tests/plugin/test_http_proxy_plugins_with_tls_interception.py::TestHttpProxyPluginExamplesWithTlsInterception::test_man_in_the_middle_plugin[test_man_in_the_middle_plugin] ERROR tests/plugin/test_http_proxy_plugins_with_tls_interception.py::TestHttpProxyPluginExamplesWithTlsInterception::test_man_in_the_middle_plugin[test_man_in_the_middle_plugin] ======================= 186 passed, 78 errors in 13.13s ======================== Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0) Exception ignored in: Traceback (most recent call last): File "/usr/lib64/python3.8/asyncio/base_events.py", line 656, in __del__ self.close() File "/usr/lib64/python3.8/asyncio/unix_events.py", line 58, in close super().close() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 92, in close self._close_self_pipe() File "/usr/lib64/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/usr/lib64/python3.8/asyncio/selector_events.py", line 280, in _remove_reader mask, (reader, writer) = key.events, key.data ValueError: not enough values to unpack (expected 2, got 0)