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

getfixturevalue does not correctly declare dependency with the calling fixture #4860

Merged

Conversation

nicoddemus
Copy link
Member

@nicoddemus nicoddemus commented Mar 1, 2019

Fix #1895

@codecov
Copy link

codecov bot commented Mar 1, 2019

Codecov Report

Merging #4860 into features will decrease coverage by 0.1%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##           features    #4860      +/-   ##
============================================
- Coverage     95.76%   95.66%   -0.11%     
============================================
  Files           113      113              
  Lines         25744    25257     -487     
  Branches       2508     2504       -4     
============================================
- Hits          24655    24162     -493     
- Misses          773      775       +2     
- Partials        316      320       +4
Flag Coverage Δ
#linux 95.48% <100%> (-0.11%) ⬇️
#osx 93.32% <100%> (ø) ⬆️
#windows 93.6% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/_pytest/fixtures.py 97.93% <100%> (-0.3%) ⬇️
testing/python/fixtures.py 99.08% <100%> (ø)
testing/test_modimport.py 81.81% <0%> (-1.52%) ⬇️
testing/code/test_source.py 95.53% <0%> (-1.07%) ⬇️
testing/test_argcomplete.py 68.11% <0%> (-0.9%) ⬇️
testing/test_compat.py 91.13% <0%> (-0.63%) ⬇️
testing/test_skipping.py 97.65% <0%> (-0.57%) ⬇️
src/_pytest/warnings.py 88.88% <0%> (-0.53%) ⬇️
src/_pytest/debugging.py 79.76% <0%> (-0.35%) ⬇️
... and 75 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1f97e4...c334adc. Read the comment docs.

@nicoddemus nicoddemus force-pushed the getfixturevalue-cleanup-1895 branch from ac85d46 to d97473e Compare March 2, 2019 12:54
@nicoddemus nicoddemus changed the title WIP: getfixturevalue does not correctly declare dependency with the calling fixture getfixturevalue does not correctly declare dependency with the calling fixture Mar 2, 2019
@nicoddemus
Copy link
Member Author

Ready for review

@nicoddemus
Copy link
Member Author

This is related to #4871. Any chance @blueyed and/or @asottile could take a look?

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@blueyed blueyed left a comment

Choose a reason for hiding this comment

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

Found some typos, and it should be against master, no?

testing/python/fixtures.py Outdated Show resolved Hide resolved
testing/python/fixtures.py Outdated Show resolved Hide resolved
testing/python/fixtures.py Outdated Show resolved Hide resolved
Co-Authored-By: nicoddemus <nicoddemus@gmail.com>
@nicoddemus
Copy link
Member Author

it should be against master, no?

While it is a bug fix, it does change the teardown order of fixtures, so I want to play safe here and release this on 4.4. 👍

@nicoddemus nicoddemus merged commit 23ea04f into pytest-dev:features Mar 3, 2019
@nicoddemus nicoddemus deleted the getfixturevalue-cleanup-1895 branch March 3, 2019 18:56
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.

None yet

3 participants