mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
[3.11] gh-115341: Fix loading unit tests with doctests in -OO mode (GH-115342) (GH-115672)
(cherry picked from commit 872cc9957a
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
55b9633316
commit
0bb94f49e3
1 changed files with 1 additions and 1 deletions
|
@ -2197,13 +2197,13 @@ class DocTestCase(unittest.TestCase):
|
|||
unittest.TestCase.__init__(self)
|
||||
self._dt_optionflags = optionflags
|
||||
self._dt_checker = checker
|
||||
self._dt_globs = test.globs.copy()
|
||||
self._dt_test = test
|
||||
self._dt_setUp = setUp
|
||||
self._dt_tearDown = tearDown
|
||||
|
||||
def setUp(self):
|
||||
test = self._dt_test
|
||||
self._dt_globs = test.globs.copy()
|
||||
|
||||
if self._dt_setUp is not None:
|
||||
self._dt_setUp(test)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue