Skip to content

Remove pytest_plugin #10762

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

Draft
wants to merge 124 commits into
base: master
Choose a base branch
from
Draft

Remove pytest_plugin #10762

wants to merge 124 commits into from

Conversation

Dreamsorcerer
Copy link
Member

This will be maintained exclusively in pytest-aiohttp going forwards.

@Dreamsorcerer Dreamsorcerer added the backport:skip Skip backport bot label Apr 20, 2025
Copy link

codecov bot commented Apr 20, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
4110 1 4109 74
View the top 2 failed test(s) by shortest run time
tests.test_tracing.TestTrace::test_send[request_exception-params4-TraceRequestExceptionParams]
Stack Traces | 0.062s run time
+ Exception Group Traceback (most recent call last):
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/runner.py", line 344, in from_call
  |     result: TResult | None = func()
  |                              ^^^^^^
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/runner.py", line 246, in <lambda>
  |     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_hooks.py", line 512, in __call__
  |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_manager.py", line 120, in _hookexec
  |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/pluggy/_callers.py", line 167, in _multicall
  |     raise exception
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/pluggy/_callers.py", line 139, in _multicall
  |     teardown.throw(exception)
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 858, in pytest_runtest_teardown
  |     yield
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/pluggy/_callers.py", line 139, in _multicall
  |     teardown.throw(exception)
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 905, in pytest_runtest_teardown
  |     return (yield)
  |             ^^^^^
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/pluggy/_callers.py", line 121, in _multicall
  |     res = hook_impl.function(*args)
  |           ^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.............../site-packages/_pytest/unraisableexception.py", line 163, in pytest_runtest_teardown
  |     collect_unraisable(item.config)
  |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.............../site-packages/_pytest/unraisableexception.py", line 81, in collect_unraisable
  |     raise ExceptionGroup("multiple unraisable exception warnings", errors)
  | ExceptionGroup: multiple unraisable exception warnings (3 sub-exceptions)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/contextlib.py", line 108, in __init__
    |     doc = getattr(func, "__doc__", None)
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | ResourceWarning: unclosed <socket.socket fd=19, family=1, type=1, proto=0>
    | 
    | The above exception was the direct cause of the following exception:
    | 
    | Traceback (most recent call last):
    |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.............../site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
    |     warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
    | pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=19, family=1, type=1, proto=0>
    | Enable tracemalloc to get traceback where the object was allocated.
    | See https://docs.pytest..../stable/how-to/capture-warnings.html#resource-warnings for more info.
    +---------------- 2 ----------------
    | Traceback (most recent call last):
    |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/contextlib.py", line 108, in __init__
    |     doc = getattr(func, "__doc__", None)
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | ResourceWarning: unclosed <socket.socket fd=18, family=1, type=1, proto=0>
    | 
    | The above exception was the direct cause of the following exception:
    | 
    | Traceback (most recent call last):
    |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.............../site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
    |     warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
    | pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=18, family=1, type=1, proto=0>
    | Enable tracemalloc to get traceback where the object was allocated.
    | See https://docs.pytest..../stable/how-to/capture-warnings.html#resource-warnings for more info.
    +---------------- 3 ----------------
    | Traceback (most recent call last):
    |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 730, in __del__
    |     _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
    | ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
    | 
    | The above exception was the direct cause of the following exception:
    | 
    | Traceback (most recent call last):
    |   File "....................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.............../site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
    |     warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
    | pytest.PytestUnraisableExceptionWarning: Exception ignored in: <function BaseEventLoop.__del__ at 0x102809bc0>
    | Enable tracemalloc to get traceback where the object was allocated.
    | See https://docs.pytest..../stable/how-to/capture-warnings.html#resource-warnings for more info.
    +------------------------------------
tests.test_web_middleware::test_middleware_subapp
Stack Traces | 0.082s run time
+ Exception Group Traceback (most recent call last):
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11....../site-packages/_pytest/runner.py", line 344, in from_call
  |     result: TResult | None = func()
  |                              ^^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11....../site-packages/_pytest/runner.py", line 246, in <lambda>
  |     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.../site-packages/pluggy/_hooks.py", line 512, in __call__
  |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.../site-packages/pluggy/_manager.py", line 120, in _hookexec
  |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11......................../site-packages/pluggy/_callers.py", line 167, in _multicall
  |     raise exception
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11......................../site-packages/pluggy/_callers.py", line 139, in _multicall
  |     teardown.throw(exception)
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
  |     yield
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11......................../site-packages/pluggy/_callers.py", line 139, in _multicall
  |     teardown.throw(exception)
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11......................../site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
  |     return result.get_result()
  |            ^^^^^^^^^^^^^^^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.../site-packages/pluggy/_result.py", line 103, in get_result
  |     raise exc.with_traceback(tb)
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11......................../site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
  |     res = yield
  |           ^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11......................../site-packages/pluggy/_callers.py", line 139, in _multicall
  |     teardown.throw(exception)
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
  |     return (yield)
  |             ^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11......................../site-packages/pluggy/_callers.py", line 139, in _multicall
  |     teardown.throw(exception)
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
  |     return (yield)
  |             ^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11......................../site-packages/pluggy/_callers.py", line 121, in _multicall
  |     res = hook_impl.function(*args)
  |           ^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.............../site-packages/_pytest/unraisableexception.py", line 158, in pytest_runtest_call
  |     collect_unraisable(item.config)
  |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.............../site-packages/_pytest/unraisableexception.py", line 81, in collect_unraisable
  |     raise ExceptionGroup("multiple unraisable exception warnings", errors)
  | ExceptionGroup: multiple unraisable exception warnings (3 sub-exceptions)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 428, in create_future
    |     return futures.Future(loop=self)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
    | ResourceWarning: unclosed <socket.socket fd=19, family=1, type=1, proto=0>
    | 
    | The above exception was the direct cause of the following exception:
    | 
    | Traceback (most recent call last):
    |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.............../site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
    |     warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
    | pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=19, family=1, type=1, proto=0>
    | Enable tracemalloc to get traceback where the object was allocated.
    | See https://docs.pytest..../stable/how-to/capture-warnings.html#resource-warnings for more info.
    +---------------- 2 ----------------
    | Traceback (most recent call last):
    |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 428, in create_future
    |     return futures.Future(loop=self)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
    | ResourceWarning: unclosed <socket.socket fd=18, family=1, type=1, proto=0>
    | 
    | The above exception was the direct cause of the following exception:
    | 
    | Traceback (most recent call last):
    |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.............../site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
    |     warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
    | pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=18, family=1, type=1, proto=0>
    | Enable tracemalloc to get traceback where the object was allocated.
    | See https://docs.pytest..../stable/how-to/capture-warnings.html#resource-warnings for more info.
    +---------------- 3 ----------------
    | Traceback (most recent call last):
    |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 693, in __del__
    |     _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
    | ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
    | 
    | The above exception was the direct cause of the following exception:
    | 
    | Traceback (most recent call last):
    |   File "......................................................................../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11.............../site-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
    |     warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
    | pytest.PytestUnraisableExceptionWarning: Exception ignored in: <function BaseEventLoop.__del__ at 0x1021cd9e0>
    | Enable tracemalloc to get traceback where the object was allocated.
    | See https://docs.pytest..../stable/how-to/capture-warnings.html#resource-warnings for more info.
    +------------------------------------

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@webknjaz
Copy link
Member

Missing change log?

@Dreamsorcerer Dreamsorcerer marked this pull request as draft April 22, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip Skip backport bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants