Skip to content

Conversation

@nicoddemus
Copy link
Member

Fix #5707

@nicoddemus nicoddemus force-pushed the summary-human-time-5707 branch from db3498d to 345df99 Compare August 10, 2019 13:46
@codecov
Copy link

codecov bot commented Aug 10, 2019

Codecov Report

Merging #5721 into features will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##           features    #5721      +/-   ##
============================================
- Coverage     96.25%   96.21%   -0.04%     
============================================
  Files           117      117              
  Lines         25889    25895       +6     
  Branches       2494     2494              
============================================
- Hits          24919    24915       -4     
- Misses          666      674       +8     
- Partials        304      306       +2
Impacted Files Coverage Δ
testing/logging/test_reporting.py 99.66% <ø> (ø) ⬆️
testing/test_pytester.py 89.24% <100%> (ø) ⬆️
src/_pytest/terminal.py 93.08% <100%> (+0.05%) ⬆️
testing/test_terminal.py 99.84% <100%> (ø) ⬆️
src/_pytest/pytester.py 91.07% <100%> (+0.1%) ⬆️
src/_pytest/compat.py 94.89% <0%> (-2.19%) ⬇️
src/_pytest/pathlib.py 89.63% <0%> (-1.04%) ⬇️
testing/test_pdb.py 98.01% <0%> (-1%) ⬇️
src/_pytest/assertion/rewrite.py 96.33% <0%> (-0.53%) ⬇️
src/_pytest/pastebin.py 91.22% <0%> (+3.5%) ⬆️

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 8665f56...345df99. Read the comment docs.

return "{:.2f}s".format(seconds)
else:
dt = datetime.timedelta(seconds=int(seconds))
return "{:.2f}s ({})".format(seconds, dt)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does not really need the "else".

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm aware, I usually like to be explicit thought (it is a matter of style after all).

@nicoddemus nicoddemus merged commit 300f785 into pytest-dev:features Aug 11, 2019
@nicoddemus nicoddemus deleted the summary-human-time-5707 branch August 11, 2019 02:05
@blueyed
Copy link
Contributor

blueyed commented Aug 15, 2019

Yay \o/

passed in 64106.78s (17:48:26)

(after quitting a left-over pdb instance)

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