Skip to content

Comments

Remove redundant conftest.py to fix compatibility with pytest 9#5521

Open
thunze wants to merge 1 commit intoplotly:mainfrom
thunze:redundant-conftest
Open

Remove redundant conftest.py to fix compatibility with pytest 9#5521
thunze wants to merge 1 commit intoplotly:mainfrom
thunze:redundant-conftest

Conversation

@thunze
Copy link

@thunze thunze commented Feb 23, 2026

pytest_ignore_collect takes only collection_path starting with pytest 9. Most of the paths referenced in plotly/conftest.py don't exist anymore and wouldn't be collected anyway, so we can just remove the file (I think?).

I ran into this issue while running pytest instead of pytest tests with pytest 9.0.2 installed.

https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path

Code PR

  • I have read through the contributing notes and understand the structure of the package. In particular, if my PR modifies code of plotly.graph_objects, my modifications concern the code generator and not the generated files.
  • I have added tests or modified existing tests.
  • For a new feature, I have added documentation examples (please see the doc checklist as well).
  • I have added a CHANGELOG entry if changing anything substantial.
  • For a new feature or a change in behavior, I have updated the relevant docstrings in the code.

@thunze thunze marked this pull request as draft February 23, 2026 18:29
`pytest_ignore_collect` takes only `collection_path` starting with
pytest 9. Most of the paths referenced in `plotly/conftest.py`
don't exist anymore and wouldn't be collected anyway, so we can just
remove the file.

https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
@thunze thunze force-pushed the redundant-conftest branch from 9531e7f to 78f1b10 Compare February 23, 2026 18:33
@thunze thunze changed the title Use np.isin instead of np.in1d to fix numpy 2.4 test compatibility Remove redundant conftest.py to fix compatibility with pytest 9 Feb 23, 2026
@thunze thunze marked this pull request as ready for review February 23, 2026 18:37
thunze added a commit to thunze/nixpkgs that referenced this pull request Feb 23, 2026
`pytest_ignore_collect` takes only `collection_path` starting with
pytest 9 [1]. Most of the paths referenced in `plotly/conftest.py`
don't exist anymore and wouldn't be collected anyway, so we can just
remove the file.

Upstream PR: plotly/plotly.py#5521

[1] https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
Stebalien pushed a commit to Stebalien/nixpkgs that referenced this pull request Feb 24, 2026
`pytest_ignore_collect` takes only `collection_path` starting with
pytest 9 [1]. Most of the paths referenced in `plotly/conftest.py`
don't exist anymore and wouldn't be collected anyway, so we can just
remove the file.

Upstream PR: plotly/plotly.py#5521

[1] https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant