Skip to content

Conversation

@Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Jun 24, 2019

But leave the helper until 5.1, so that the error message can be helpful and suggest using the modern form. Closes #4676.

I've gone with a hard AttributeError over a warning because it's a trivial and far-back-compatible thing to fix, and it would be really nice to delete the FuncargnamesCompatAttr class in 5.1.

@codecov
Copy link

codecov bot commented Jun 24, 2019

Codecov Report

Merging #5476 into features will decrease coverage by 0.2%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##           features    #5476      +/-   ##
============================================
- Coverage     83.14%   82.93%   -0.21%     
============================================
  Files           114      114              
  Lines         25528    25532       +4     
  Branches       2482     2482              
============================================
- Hits          21224    21176      -48     
- Misses         3915     3948      +33     
- Partials        389      408      +19
Impacted Files Coverage Δ
testing/python/metafunc.py 70.69% <ø> (+0.68%) ⬆️
testing/python/fixtures.py 66.36% <ø> (-10%) ⬇️
src/_pytest/fixtures.py 94.65% <100%> (-0.97%) ⬇️
src/_pytest/deprecated.py 100% <100%> (ø) ⬆️
src/_pytest/compat.py 97.08% <100%> (+3.05%) ⬆️
testing/test_unittest.py 22.42% <0%> (-32.25%) ⬇️
src/_pytest/unittest.py 45.19% <0%> (-25.99%) ⬇️
testing/test_tmpdir.py 71.5% <0%> (-22.35%) ⬇️
testing/test_terminal.py 78.87% <0%> (-19.25%) ⬇️
... and 17 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 4d5780f...138cdcf. Read the comment docs.

@Zac-HD Zac-HD force-pushed the funcargnames-to-fixturenames branch 2 times, most recently from d6258f9 to d4b9e5f Compare June 25, 2019 03:27
@Zac-HD Zac-HD changed the title Remove funcargnames alias for fixturenames Deprecate funcargnames alias for fixturenames Jun 25, 2019
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Looks great, just missing the CHANGELOG.

Please also update deprecations.rst with a new section. 👍

@Zac-HD Zac-HD force-pushed the funcargnames-to-fixturenames branch from 1bf136d to 138cdcf Compare June 25, 2019 13:48
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!


.. deprecated:: 5.0

The ``FixtureRequest``, ``Metafunc``, and ``Function`` classes track the names of
Copy link
Member

Choose a reason for hiding this comment

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

Great explanation! 👍

@Zac-HD
Copy link
Member Author

Zac-HD commented Jun 25, 2019

OK! I'm going to close this, and re-target it against master... third time's the charm 🤦‍♂️

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.

2 participants