TestResult decorator classes do not have the addDuration method added to TestResult in Python 3.12
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subunit |
New
|
Undecided
|
Unassigned |
Bug Description
Python 3.12 added [[https:/
A simpler reproducer is to use {{{stestr -t . run test}}} with a test.py file with this content (tested with stestr 4.1.0):
{{{#!python
from unittest import TestCase
class TestExample(
def test_pass(self):
pass
}}}
Since there is an overlap of maintainers with testtools, I will mention here that I think classes like ExtendedToStrea mDecorator in testtools might also need to add addDuration, but it is less clear to me if those classes are supposed to mirror the unittest.TestResult interface or just work with the testtools classes, so I won't open an issue for them now.