Skip to content

Emit warnings for legacy parametrization + marking #2427

@The-Compiler

Description

@The-Compiler

In #1921 we say "The old syntax will be removed in pytest-4.0.", and @nicoddemus said "Also please state that this mechanism will start to emit warnings in 3.1 and will be dropped in 4.0.".

However, looks like this hasn't happened.

As a quick hack for myself I did this in ParameterSet.extract_from:

        while isinstance(argval, MarkDecorator):
            assert False, parameterset  # added

cc @RonnyPfannschmidt

Metadata

Metadata

Labels

type: enhancementnew feature or API change, should be merged into features branchtype: feature-branchnew feature or API change, should be merged into features branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions