You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Package level marker does not appear in iter_markers() during collection tests #9245
The addition of pytestmark marks to the Package node happens when the underlying package is imported (during execution of the obj property of the Package node).
Activity
Denis-Alexeev commentedon Oct 28, 2021
may be related to #5830
bluetech commentedon Oct 28, 2021
This is indeed a duplicate of #5830.
pytestmarkmarks to thePackagenode happens when the underlying package is imported (during execution of theobjproperty of thePackagenode).bluetech commentedon Oct 28, 2021
A hacky workaround is to not rely on
pytestmarkbut to add the mark manually. You can add this to yourconftest.py(you'll need to adjust thenodeid):