[pytest-dev] Refactoring/fixing markers

Ronny Pfannschmidt rpfannsc at redhat.com
Tue Mar 22 04:57:51 EDT 2016


Hi Everyone,

the current marker implementation has a massive bugs/issues wrt application of markers "smearning" across class boundaries
due to marker transfer (which is basically completely broken).

In order to elevate the issue, i'd like to change how markers are viewed by test items,

the idea is to completely remove them from the actual objects, except for pytestmark collections on modules/classes/functions

items would then get a merged view of markers that apply to them without ever copying/changing the marker collections of the applying objects

this would change the external interface for markers, thus requiring a major version (pytest-3.0)
so i#d like to request a branch on the main repo expressing that intent.



i'm planning to implement this in the next 1-2 weeks.

-- Ronny


More information about the pytest-dev mailing list