chore: PP309: Filter warnings specified #9620
Draft
Cirrus CI / Tests / FreeBSD (Python 3.11) / pytest
failed
Sep 3, 2024 in 3m 6s
Task Summary
Instruction pytest failed in 01:27
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:03 clone
✅ 01:18 bootstrap_poetry
✅ 00:15 setup_environment
❌ 01:27 pytest
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.11/unittest/mock.py", line 2133, in _mock_set_magics
E setattr(_type, entry, MagicProxy(entry, self))
E ^^^^^^^^^^^^^^^^^^^^^^^
E ResourceWarning: unclosed file <_io.FileIO name='/tmp/tmpnolfbia4' mode='rb+' closefd=True>
/.cache/pypoetry/virtualenvs/poetry-XZqP7kBn-py3.11/lib/python3.11/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning
------------------------------ Captured log setup ------------------------------
DEBUG httpretty.core:core.py:458 error closing file <httpretty.core.FakeSockFile object at 0x1569f750eb10>: '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 0x1569f750eb10>: '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/utils/env/test_env_manager.py:1289: requires darwin
SKIPPED [1] tests/installation/test_executor.py:305: https://github.com/python-poetry/poetry/issues/7983
SKIPPED [1] tests/installation/test_installer.py:1794: This is not working at the moment due to limitations in the resolver
SKIPPED [1] tests/puzzle/test_solver.py:3799: Poetry no longer has critical package requirements
SKIPPED [1] tests/utils/env/test_env.py:525: Windows only
SKIPPED [1] tests/integration/test_utils_vcs_git.py:315: HTTP authentication credentials not available
ERROR tests/utils/test_helpers.py::test_guaranteed_hash[sha224-d26bd24163fe91c16b4b0162e773514beab77b76114d9faf6a31e350] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
Traceback (most recent call last):
File "/usr/local/lib/python3.11/unittest/mock.py", line 475, in __init__
_safe_super(NonCallableMock, self).__init__(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ResourceWarning: unclosed file <_io.FileIO name='/tmp/tmp5ubqx2a1' mode='rb+' closefd=True>
ERROR tests/utils/test_helpers.py::test_download_file_recover_from_error - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
Traceback (most recent call last):
File "/usr/local/lib/python3.11/unittest/mock.py", line 2133, in _mock_set_magics
setattr(_type, entry, MagicProxy(entry, self))
^^^^^^^^^^^^^^^^^^^^^^^
ResourceWarning: unclosed file <_io.FileIO name='/tmp/tmpnolfbia4' mode='rb+' closefd=True>
============= 1695 passed, 7 skipped, 2 errors in 84.41s (0:01:24) =============
Loading