-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
topic: marksrelated to marks, either the general marks or builtinrelated to marks, either the general marks or builtintype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new featuretype: refactoringinternal improvements to the codeinternal improvements to the code
Description
Marks currently are transferred between nested Python objects after collection, by mutating the objects themselves. For example, marks applied to classes are copied over all the test methods of the class, being added as attributes of the methods themselves.
This approach brings with it some surprising problems and is hard to get it right (#199, #842 and probably many others which have been fixed along the years).
@RonnyPfannschmidt has proposed to get rid of the current mark transfer mechanism in favor of a new one where marks are transfered from parent items to children, instead of mutating the Python objects.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: marksrelated to marks, either the general marks or builtinrelated to marks, either the general marks or builtintype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new featuretype: refactoringinternal improvements to the codeinternal improvements to the code