Skip to content

Commit 09ec032

Browse files
authored
drop @no_rerun decorator from CapiTest class
1 parent 1020c94 commit 09ec032

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Lib/test/datetimetester.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,6 @@
5252
pass
5353
#
5454

55-
# This is copied from test_import/__init__.py.
56-
def no_rerun(reason):
57-
"""Skip rerunning for a particular test.
58-
59-
WARNING: Use this decorator with care; skipping rerunning makes it
60-
impossible to find reference leaks. Provide a clear reason for skipping the
61-
test using the 'reason' parameter.
62-
"""
63-
def deco(func):
64-
_has_run = False
65-
def wrapper(self):
66-
nonlocal _has_run
67-
if _has_run:
68-
self.skipTest(reason)
69-
func(self)
70-
_has_run = True
71-
return wrapper
72-
return deco
73-
7455
pickle_loads = {pickle.loads, pickle._loads}
7556

7657
pickle_choices = [(pickle, pickle, proto)
@@ -6412,7 +6393,6 @@ class IranTest(ZoneInfoTest):
64126393

64136394

64146395
@unittest.skipIf(_testcapi is None, 'need _testcapi module')
6415-
@no_rerun("the encapsulated datetime C API does not support reloading")
64166396
class CapiTest(unittest.TestCase):
64176397
def setUp(self):
64186398
# Since the C API is not present in the _Pure tests, skip all tests

0 commit comments

Comments
 (0)