← All tasks
pythonpytest-dev/pytest-asyncio #737Not a task: already works

Support for Pytest 8.0

envgap__pytest-dev__pytest-asyncio-737

01 / FAILURE SIGNATURE

As reported upstream

INTERNALERROR> AttributeError: 'Package' object has no attribute 'obj'
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
3e67b0dc65e566b6f326d5576913dfe1b8e05339
Manifest
setup.cfg
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

pytest-dev/pytest-asyncio #737 · read the original issue
pytest 8.0.0rc1 was released today, and we're seeing a startup failure with `pytest-asyncio`:



https://github.com/jupyter/jupyter_events/actions/runs/7386335973/job/20092726210



<details>



```

============================= test session starts ==============================

platform linux -- Python 3.11.7, pytest-8.0.0rc1, pluggy-1.3.0 -- /home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/bin/python

cachedir: .pytest_cache

rootdir: /home/runner/work/jupyter_events/jupyter_events

configfile: pyproject.toml

testpaths: tests/

plugins: console-scripts-1.4.1, asyncio-0.23.3

asyncio: mode=Mode.AUTO

collecting ... collected 0 items

INTERNALERROR> Traceback (most recent call last):

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/main.py", line 270, in wrap_session

INTERNALERROR>     session.exitstatus = doit(config, session) or 0

INTERNALERROR>                          ^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/main.py", line 323, in _main

INTERNALERROR>     config.hook.pytest_collection(session=session)

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_hooks.py", line 493, in __call__

INTERNALERROR>     return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)

INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_manager.py", line 115, in _hookexec

INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)

INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_callers.py", line 113, in _multicall

INTERNALERROR>     raise exception.with_traceback(exception.__traceback__)

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_callers.py", line 96, in _multicall

INTERNALERROR>     teardown.throw(exception)  # type: ignore[union-attr]

INTERNALERROR>     ^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/logging.py", line 782, in pytest_collection

INTERNALERROR>     return (yield)

INTERNALERROR>             ^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_callers.py", line 96, in _multicall

INTERNALERROR>     teardown.throw(exception)  # type: ignore[union-attr]

INTERNALERROR>     ^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/warnings.py", line 118, in pytest_collection

INTERNALERROR>     return (yield)

INTERNALERROR>             ^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_callers.py", line 96, in _multicall

INTERNALERROR>     teardown.throw(exception)  # type: ignore[union-attr]

INTERNALERROR>     ^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/config/__init__.py", line 1353, in pytest_collection

INTERNALERROR>     return (yield)

INTERNALERROR>             ^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_callers.py", line 77, in _multicall

INTERNALERROR>     res = hook_impl.function(*args)

INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/main.py", line 334, in pytest_collection

INTERNALERROR>     session.perform_collect()

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/main.py", line 761, in perform_collect

INTERNALERROR>     self.items.extend(self.genitems(node))

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/main.py", line 899, in genitems

INTERNALERROR>     rep, duplicate = self._collect_one_node(node, handle_dupes)

INTERNALERROR>                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/main.py", line 787, in _collect_one_node

INTERNALERROR>     rep = collect_one_node(node)

INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/_pytest/runner.py", line 562, in collect_one_node

INTERNALERROR>     ihook.pytest_collectstart(collector=collector)

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_hooks.py", line 493, in __call__

INTERNALERROR>     return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)

INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_manager.py", line 115, in _hookexec

INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)

INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_callers.py", line 113, in _multicall

INTERNALERROR>     raise exception.with_traceback(exception.__traceback__)

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pluggy/_callers.py", line 77, in _multicall

INTERNALERROR>     res = hook_impl.function(*args)

INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^

INTERNALERROR>   File "/home/runner/.local/share/hatch/env/virtual/jupyter-events/4vpRDyVj/test/lib/python3.11/site-packages/pytest_asyncio/plugin.py", line 626, in pytest_collectstart

INTERNALERROR>     pyobject = collector.obj

INTERNALERROR>                ^^^^^^^^^^^^^

INTERNALERROR> AttributeError: 'Package' object has no attribute 'obj'



============================ no tests ran in 0.01s =============================

```



</details>
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]