You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
β question about the decisions made in the repository
π Describe the bug. What is the current behavior?
When pytest is run on alpine Linux there are 2 failures with cheroot 8.5.1
cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[RuntimeError(666)]
/usr/lib/python3.8/site-packages/_pytest/threadexception.py:75: PytestUnhandledThreadExceptionWarning: Exception in thread CP Server Thread-24
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/working/py3-cheroot/src/cheroot-8.5.1/cheroot/workers/threadpool.py", line 130, in run
conn.close()
File "/home/working/py3-cheroot/src/cheroot-8.5.1/cheroot/server.py", line 1360, in close
self._close_kernel_socket()
File "/home/working/py3-cheroot/src/cheroot-8.5.1/cheroot/test/test_conn.py", line 655, in _close_kernel_socket
old_close_kernel_socket(self)
File "/home/working/py3-cheroot/src/cheroot-8.5.1/cheroot/server.py", line 1483, in _close_kernel_socket
shutdown(socket.SHUT_RDWR) # actually send a TCP FIN
File "/usr/lib/python3.8/unittest/mock.py", line 1081, in __call__
return self._mock_call(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1085, in _mock_call
return self._execute_mock_call(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1146, in _execute_mock_call
result = effect(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pytest_mock/plugin.py", line 117, in wrapper
r = method(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1081, in __call__
return self._mock_call(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1085, in _mock_call
return self._execute_mock_call(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1140, in _execute_mock_call
raise effect
RuntimeError: (666, 'Simulated socket error')
warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))
And
cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[socket.error(-1)]
/usr/lib/python3.8/site-packages/_pytest/threadexception.py:75: PytestUnhandledThreadExceptionWarning: Exception in thread CP Server Thread-25
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/working/py3-cheroot/src/cheroot-8.5.1/cheroot/workers/threadpool.py", line 130, in run
conn.close()
File "/home/working/py3-cheroot/src/cheroot-8.5.1/cheroot/server.py", line 1360, in close
self._close_kernel_socket()
File "/home/working/py3-cheroot/src/cheroot-8.5.1/cheroot/test/test_conn.py", line 655, in _close_kernel_socket
old_close_kernel_socket(self)
File "/home/working/py3-cheroot/src/cheroot-8.5.1/cheroot/server.py", line 1483, in _close_kernel_socket
shutdown(socket.SHUT_RDWR) # actually send a TCP FIN
File "/usr/lib/python3.8/unittest/mock.py", line 1081, in __call__
return self._mock_call(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1085, in _mock_call
return self._execute_mock_call(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1146, in _execute_mock_call
result = effect(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pytest_mock/plugin.py", line 117, in wrapper
r = method(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1081, in __call__
return self._mock_call(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1085, in _mock_call
return self._execute_mock_call(*args, **kwargs)
File "/usr/lib/python3.8/unittest/mock.py", line 1140, in _execute_mock_call
raise effect
OSError: [Errno -1] Simulated socket error
warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))
β What is the motivation / use case for changing the behavior?
Tests need to pass to create a package
π‘ To Reproduce
Steps to reproduce the behavior:
Try and build a package on alpine Linux
Tests fail
π‘ Expected behavior
Tests pass, xfail, or skip
π Details
π Environment
Cheroot version: 8.5.1
CherryPy version: X.X.X (if applicable)
Python version: 3.8.7
OS: alpine:edge
Browser: NA
π Additional context
The text was updated successfully, but these errors were encountered:
As a workaround, either use pytest below 6.2.0 or disable the new plugins that cause these warnings. See the changelog for pytest v6.2.0 for more details.
β I'm submitting a ...
π Describe the bug. What is the current behavior?
When pytest is run on alpine Linux there are 2 failures with cheroot 8.5.1
And
β What is the motivation / use case for changing the behavior?
Tests need to pass to create a package
π‘ To Reproduce
Steps to reproduce the behavior:
π‘ Expected behavior
Tests pass, xfail, or skip
π Details
π Environment
π Additional context
The text was updated successfully, but these errors were encountered: