File tree 1 file changed +0
-20
lines changed 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 52
52
pass
53
53
#
54
54
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
-
74
55
pickle_loads = {pickle .loads , pickle ._loads }
75
56
76
57
pickle_choices = [(pickle , pickle , proto )
@@ -6412,7 +6393,6 @@ class IranTest(ZoneInfoTest):
6412
6393
6413
6394
6414
6395
@unittest .skipIf (_testcapi is None , 'need _testcapi module' )
6415
- @no_rerun ("the encapsulated datetime C API does not support reloading" )
6416
6396
class CapiTest (unittest .TestCase ):
6417
6397
def setUp (self ):
6418
6398
# Since the C API is not present in the _Pure tests, skip all tests
You can’t perform that action at this time.
0 commit comments