Skip to content

BUG: pd.test does not respect passing pandas specific markers #50302

@mroeschke

Description

@mroeschke

xref conda-forge/pandas-feedstock#147

When installing pandas and trying to run pd.test(["-m slow"]), -m slow will not necessarily be respected because our custom markers are defined in pyproject.toml

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.9/site-packages/pandas/tests/io/test_html.py:375
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.9/site-packages/pandas/tests/io/test_html.py:375
  $PREFIX/lib/python3.9/site-packages/pandas/tests/io/test_html.py:375: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.slow

Since pd.test runs with pytest.main which doesn't have a way to register the custom markers, pd.test is not fully working when running from a package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBuildLibrary building on various platformsTestingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions