From 8884064a143f584c8b8ceb90a24d0d45f7480bce Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 26 Apr 2023 00:02:53 +0200 Subject: [PATCH] Add addDuration() for Python >= 3.12 (#570) --- nose2/result.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nose2/result.py b/nose2/result.py index 9620182f..48adc22a 100644 --- a/nose2/result.py +++ b/nose2/result.py @@ -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.