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

Closed
blueyed opened this Issue Jul 4, 2017 · 1 comment

Comments

Projects
None yet
4 participants
@blueyed
Contributor

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:

pytest/_pytest/skipping.py

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

@bilderbuchi

This comment has been minimized.

Contributor

bilderbuchi commented Oct 24, 2017

@nicoddemus @RonnyPfannschmidt as the PR is merged this can be closed I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment