Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: PP309: Filter warnings specified #9620

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

chore: PP309: Filter warnings specified

0864548
Select commit
Loading
Failed to load commit list.
Draft

chore: PP309: Filter warnings specified #9620

chore: PP309: Filter warnings specified
0864548
Select commit
Loading
Failed to load commit list.
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) =============