Skip to content

Small refactorings#3708

Merged
RonnyPfannschmidt merged 3 commits intopytest-dev:featuresfrom
nicoddemus:small-refactors
Jul 23, 2018
Merged

Small refactorings#3708
RonnyPfannschmidt merged 3 commits intopytest-dev:featuresfrom
nicoddemus:small-refactors

Conversation

@nicoddemus
Copy link
Member

Because it seems #3705 will take longer than I would like, as commented in #3705 (review) here are some commits with small refactorings so we can get this in.

As it were before, it was keeping a reference to fixturefunc and it
alive when an error occurred
pytest_fixture_setup was somewhat convoluted because it was trying
to do too many things.
Since fixture and yield_fixture are identical, they should call
the same code; as it was, the code inside them was already starting
to deviate.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 92.541% when pulling f516506 on nicoddemus:small-refactors into 0bb29d5 on pytest-dev:features.

@RonnyPfannschmidt RonnyPfannschmidt merged commit f8749ee into pytest-dev:features Jul 23, 2018
@RonnyPfannschmidt
Copy link
Member

great job

@nicoddemus nicoddemus deleted the small-refactors branch July 23, 2018 09:52
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.

4 participants