danepitkin commented on PR #37018:
URL: https://github.com/apache/arrow/pull/37018#issuecomment-1664733073
For python 3.8 through 3.11 there is only 1 warning (repeated in 5 test
cases).
```
____________________ ERROR at setup of test_read_s3fs[True]
____________________
___________________ ERROR at setup of test_read_s3fs[False]
____________________
_______________ ERROR at setup of test_read_directory_s3fs[True]
_______________
______________ ERROR at setup of test_read_directory_s3fs[False]
_______________
__________ ERROR at setup of test_write_metadata_fs_file_combinations
__________
cls = <class '_pytest.runner.CallInfo'>
func = <function call_runtest_hook.<locals>.<lambda> at 0x7fd5884620f0>
when = 'setup'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
@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()
opt/conda/envs/arrow/lib/python3.9/site-packages/_pytest/runner.py:341:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
opt/conda/envs/arrow/lib/python3.9/site-packages/_pytest/runner.py:262: in
<lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
opt/conda/envs/arrow/lib/python3.9/site-packages/pluggy/_hooks.py:433: in
__call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
opt/conda/envs/arrow/lib/python3.9/site-packages/pluggy/_manager.py:112: in
_hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
opt/conda/envs/arrow/lib/python3.9/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: <socket.socket fd=-1, family=AddressFamily.AF_INET,
type=SocketKind.SOCK_STREAM, proto=6>
E
E Traceback (most recent call last):
E File
"/opt/conda/envs/arrow/lib/python3.9/site-packages/_pytest/fixtures.py", line
902, in call_fixture_func
E fixture_result = fixturefunc(**kwargs)
E ResourceWarning: unclosed <socket.socket fd=189,
family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6,
laddr=('127.0.0.1', 35258), raddr=('127.0.0.1', 56633)>
opt/conda/envs/arrow/lib/python3.9/site-packages/_pytest/unraisableexception.py:78:
PytestUnraisableExceptionWarning
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]