Skip to content

Inconsistency in skipif example #1224

Closed
@zenhack

Description

@zenhack

The first two examples in this section of the documentation:

http://pytest.org/latest/skipping.html#skip-all-test-functions-of-a-class-or-module

Are internally inconsistent. The docstring for test_function says "will not be setup or run under 'win32' platform" (and the class name TestPosixCalls is suggestive of this), but the actual condition passed to skipif (as well as reason) is the opposite: the tests will only be run on windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: docsdocumentation improvement, missing or needing clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions