Skip to content

TST: make _skip_if into pytest decorators #18190

Closed
@jreback

Description

@jreback

we should move the _skip_if_* functions out of pandas.util.testing to another (private module)

then we can add skipif decorators

and use like this

@skip_if_windows_py3
def test_.......():

rather than calling tm._skip_if_windows_py390 in the body of the function (sometimes you also need to do that, so we leave the functions themselves as well).

this makes much more idiomatic and readable pytest code and removes the need to roll your own when using the decorator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions