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

Ignore _pytest.runner by default #288

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

goodspark
Copy link

This will fix pytest duration calculation. Fixes #286

Sam Park added 2 commits February 8, 2019 07:59
This will fix pytest duration calculation. Fixes spulec#286
So that the change doesn't leak across tests
api.call_stack_inspection_limit = ori_val


@pytest.mark.usefixtures('change_stack_limit')
def test_should_use_real_time():
Copy link
Author

@goodspark goodspark Feb 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_should_use_real_time fails. But if I comment out the lines that change call_stack_inspection_limit, they pass.

As a sanity check, I undid my change, left the call_stack_inspection_limit lines commented out, and the tests still passed. So I'm not sure what this is doing, other than increasing coverage. Perhaps another test should be written for that instead.

I think the other tests failed (from the run from the first commit) because the limit was 'leaking' across the tests.

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.

Slowest test times from pytest are incorrect
1 participant