Skip to content

Commit

Permalink
Fix --durations flag when flexmock is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
sonthonaxrk authored and ollipa committed Jul 19, 2021
1 parent c102d71 commit ce78f9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flexmock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,7 @@ def call_runtest_hook(item, when, **kwargs):
return ret
if hasattr(runner.CallInfo, "from_call"):
teardown = runner.CallInfo.from_call(flexmock_teardown, when=when)
teardown.duration = ret.duration
else:
teardown = runner.CallInfo(flexmock_teardown, when=when)
teardown.result = None
Expand Down

0 comments on commit ce78f9e

Please sign in to comment.