chore: PP309: Filter warnings specified #9620
Draft
Cirrus CI / Tests / FreeBSD (Python 3.8) / pytest
failed
Sep 3, 2024 in 2m 58s
Task Summary
Instruction pytest failed in 01:22
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:03 clone
✅ 01:15 bootstrap_poetry
✅ 00:14 setup_environment
❌ 01:22 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.8/enum.py", line 339, in __call__
E return cls.__new__(cls, value)
E ResourceWarning: unclosed file <_io.FileIO name=13 mode='rb+' closefd=True>
/.cache/pypoetry/virtualenvs/poetry-XZqP7kBn-py3.8/lib/python3.8/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning
------------------------------ Captured log setup ------------------------------
DEBUG httpretty.core:core.py:458 error closing file <httpretty.core.FakeSockFile object at 0x32d4cb439610>: '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 0x32d4cb439610>: '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/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_manager.py:1289: requires darwin
SKIPPED [1] tests/utils/env/test_env.py:525: Windows only
SKIPPED [1] tests/installation/test_executor.py:305: https://github.com/python-poetry/poetry/issues/7983
SKIPPED [1] tests/integration/test_utils_vcs_git.py:315: HTTP authentication credentials not available
ERROR tests/utils/test_helpers.py::test_highest_priority_hash_type[md5-md5] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/unittest/mock.py", line 2076, in __init__
self.name = name
ResourceWarning: unclosed file <_io.FileIO name=13 mode='rb+' closefd=True>
ERROR tests/utils/test_helpers.py::test_guaranteed_hash[sha3_224-72980fc7bdf8c4d34268dc469442b09e1ccd2a8ff390954fc4d55a5a] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/enum.py", line 339, in __call__
return cls.__new__(cls, value)
ResourceWarning: unclosed file <_io.FileIO name=13 mode='rb+' closefd=True>
============= 1695 passed, 7 skipped, 2 errors in 80.28s (0:01:20) =============
Loading