Skip to content

Fix trailing whitespace in FixtureDef.__repr__ #4105

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

Merged
merged 1 commit into from
Oct 10, 2018

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Oct 10, 2018

No description provided.

@coveralls
Copy link

coveralls commented Oct 10, 2018

Coverage Status

Coverage increased (+0.02%) to 93.804% when pulling d93de6c on blueyed:repr into 943bbdd on pytest-dev:features.

@codecov
Copy link

codecov bot commented Oct 10, 2018

Codecov Report

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

Impacted file tree graph

@@             Coverage Diff              @@
##           features    #4105      +/-   ##
============================================
- Coverage     94.52%   94.41%   -0.11%     
============================================
  Files           109      109              
  Lines         23940    23940              
  Branches       2363     2363              
============================================
- Hits          22629    22604      -25     
- Misses         1001     1022      +21     
- Partials        310      314       +4
Flag Coverage Δ
#doctesting 28.41% <100%> (-0.71%) ⬇️
#linux 94.41% <100%> (+0.04%) ⬆️
#nobyte 0% <ø> (ø) ⬆️
#numpy 28.01% <100%> (-0.01%) ⬇️
#pexpect 0% <ø> (ø) ⬆️
#py27 92.57% <100%> (-0.07%) ⬇️
#py34 91.99% <100%> (-0.09%) ⬇️
#py35 92% <100%> (-0.09%) ⬇️
#py36 92.52% <100%> (-0.13%) ⬇️
#py37 92.16% <100%> (-0.14%) ⬇️
#trial 31.09% <100%> (-0.16%) ⬇️
#windows ?
#xdist 18.63% <0%> (-0.05%) ⬇️
Impacted Files Coverage Δ
src/_pytest/fixtures.py 97.03% <100%> (-0.27%) ⬇️
testing/test_paths.py 86.36% <0%> (-13.64%) ⬇️
src/_pytest/paths.py 91.3% <0%> (-8.7%) ⬇️
testing/test_tmpdir.py 95.06% <0%> (-4.94%) ⬇️
src/_pytest/capture.py 86.72% <0%> (-3.21%) ⬇️
src/_pytest/nodes.py 93.8% <0%> (-0.83%) ⬇️
testing/acceptance_test.py 97.14% <0%> (-0.66%) ⬇️
src/_pytest/pytester.py 85.9% <0%> (-0.44%) ⬇️
testing/test_capture.py 98.94% <0%> (-0.31%) ⬇️
... and 1 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 943bbdd...d93de6c. Read the comment docs.

@blueyed blueyed merged commit 4c9015c into pytest-dev:features Oct 10, 2018
@blueyed blueyed deleted the repr branch October 10, 2018 17:28
@@ -899,7 +899,7 @@ def execute(self, request):
return hook.pytest_fixture_setup(fixturedef=self, request=request)

def __repr__(self):
return "<FixtureDef name=%r scope=%r baseid=%r >" % (
return "<FixtureDef name=%r scope=%r baseid=%r>" % (
self.argname,
self.scope,
self.baseid,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might also have been good to replace "name" with "argname"?

Copy link
Member

Choose a reason for hiding this comment

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

Hmm yes I think so

blueyed added a commit to blueyed/pytest that referenced this pull request Nov 9, 2018
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.

3 participants