chore: PP309: Filter warnings specified #9620
Closed
Cirrus CI / Tests / FreeBSD (Python 3.9) / pytest
failed
Sep 3, 2024 in 3m 4s
Task Summary
Instruction pytest failed in 01:30
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:03 clone
✅ 01:11 bootstrap_poetry
✅ 00:15 setup_environment
❌ 01:30 pytest
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def unraisable_exception_runtest_hook() -> Generator[None, None, None]:
with catch_unraisable_exception() as cm:
try:
yield
finally:
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: <_io.FileIO [closed]>
E
E Traceback (most recent call last):
E File "/usr/local/lib/python3.9/unittest/mock.py", line 2058, in _mock_set_magics
E setattr(_type, entry, MagicProxy(entry, self))
E ResourceWarning: unclosed file <_io.FileIO name=13 mode='rb+' closefd=True>
/.cache/pypoetry/virtualenvs/poetry-XZqP7kBn-py3.9/lib/python3.9/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning
------------------------------ Captured log setup ------------------------------
DEBUG httpretty.core:core.py:458 error closing file <httpretty.core.FakeSockFile object at 0x8b1d2e67b20>: 'super' object has no attribute 'flush'
DEBUG httpretty.core:core.py:463 error closing file <_io.BufferedRandom name=14>: flush of closed file
DEBUG httpretty.core:core.py:458 error closing file <httpretty.core.FakeSockFile object at 0x8b1d2e67b20>: 'super' object has no attribute 'flush'
DEBUG httpretty.core:core.py:463 error closing file <_io.BufferedRandom name=14>: flush of closed file
-------------- generated xml file: /tmp/cirrus-ci-build/junit.xml --------------
=========================== short test summary info ============================
SKIPPED [1] tests/console/commands/test_run.py:88: Poetry only installs CMD script files for console scripts of editable dependencies on Windows
SKIPPED [1] tests/integration/test_utils_vcs_git.py:315: HTTP authentication credentials not available
SKIPPED [1] tests/installation/test_executor.py:305: https://github.com/python-poetry/poetry/issues/7983
SKIPPED [1] tests/puzzle/test_solver.py:3799: Poetry no longer has critical package requirements
SKIPPED [1] tests/installation/test_installer.py:1794: This is not working at the moment due to limitations in the resolver
SKIPPED [1] tests/utils/env/test_env.py:525: Windows only
SKIPPED [1] tests/utils/env/test_env_manager.py:1289: requires darwin
ERROR tests/utils/test_helpers.py::test_default_hash - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/unittest/mock.py", line 2058, in _mock_set_magics
setattr(_type, entry, MagicProxy(entry, self))
ResourceWarning: unclosed file <_io.FileIO name=13 mode='rb+' closefd=True>
ERROR tests/utils/test_helpers.py::test_guaranteed_hash[sha512-766ecf369b6bdf801f6f7bbfe23923cc9793d633a55619472cd3d5763f9154711fbf57c8b6ca74e4a82fa9bd8380af831e7b8668e68e362669fc60b1d81d79ad] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/unittest/mock.py", line 2058, in _mock_set_magics
setattr(_type, entry, MagicProxy(entry, self))
ResourceWarning: unclosed file <_io.FileIO name=13 mode='rb+' closefd=True>
============= 1695 passed, 7 skipped, 2 errors in 88.07s (0:01:28) =============
Loading