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

Factor out own_markers and keywords into properties #359

Open
wants to merge 12 commits into
base: my-master
Choose a base branch
from

Conversation

blueyed
Copy link
Owner

@blueyed blueyed commented Apr 9, 2020

blueyed added a commit that referenced this pull request Apr 9, 2020
The test is not including keywords for now (in the end,
#359)
@blueyed blueyed force-pushed the own_markers branch 4 times, most recently from 75d768a to 7bea6c7 Compare April 9, 2020 20:26
@blueyed blueyed force-pushed the own_markers branch 4 times, most recently from 3723fd0 to 046faa7 Compare July 7, 2020 12:30
@blueyed blueyed force-pushed the own_markers branch 2 times, most recently from 482fea6 to a5515e1 Compare November 1, 2020 23:06
This makes it a bit more easier to follow, especially with the removed
hack of setting it only based on `_ALLOW_MARKERS` property.

This was triggered based on wondering why setting `_obj` directly would
not set the marks.
This improves collection time when keywords are not used, and helps by
factoring out the code in general.

With `PYTEST_REORDER_TESTS=0` (since the re-ordering triggers getting keywords
to add marks to it...):

Before:

    raw times: 1.58 sec, 1.56 sec, 1.57 sec, 1.57 sec, 1.57 sec
    1 loop, best of 5: 1.56 sec per loop

After:

    raw times: 1.49 sec, 1.48 sec, 1.48 sec, 1.5 sec, 1.47 sec
    1 loop, best of 5: 1.47 sec per loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant