Skip to content

Make backward-compatibility magic optional #8424

Closed
@nedbat

Description

@nedbat

I had some trouble with getting my large test suite to work properly with pytest. A debugging session revealed that I was using method names that pytest identified as "unittest" names, and then also as "nosetest" names. Pytest treated the methods specially as a result. Better for me would be if that helpful magic could be disabled, so that I get just-plain pytest.

My suggestion is to have options --legacy=unittest and --legacy=nosetest, and have to opt-in to that behavior. This would be a breaking change, so making it opt-out instead of opt-in is also a reasonable path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: noserelated to the nose integration builtin pluginplugin: unittestrelated to the unittest integration builtin plugintype: deprecationfeature that will be removed in the futuretype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions