Skip to content

Commit

Permalink
Add addDuration() for Python >= 3.12 (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Apr 25, 2023
1 parent 9afa816 commit 8884064
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nose2/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def stopTest(self, test):
event = events.StopTestEvent(test, self, time.time())
self.session.hooks.stopTest(event)

def addDuration(self, test, elapsed): # For Python >= 3.12
pass

def addError(self, test, err):
"""Test case resulted in error.
Expand Down

0 comments on commit 8884064

Please sign in to comment.