Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report "pytestmark = skip" only once #2549

blueyed opened this issue Jul 4, 2017 · 1 comment

Report "pytestmark = skip" only once #2549

blueyed opened this issue Jul 4, 2017 · 1 comment


Copy link

@blueyed blueyed commented Jul 4, 2017

When using pytestmark = pytest.mark.skip("reason") on a module you will get a SKIP report for every test in that module (in the short test summary info).

There happens some folding already, which could be extended:


Lines 351 to 360 in 6908d93

def folded_skips(skipped):
d = {}
for event in skipped:
key = event.longrepr
assert len(key) == 3, (event, key)
d.setdefault(key, []).append(event)
l = []
for key, events in d.items():
l.append((len(events),) + key)
return l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants