summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-05-28 00:52:52 (GMT)
committerGitHub <noreply@github.com>2024-05-28 00:52:52 (GMT)
commit9216a5336fc3c5b594bba1ae18779100c207b23f (patch)
tree3039c437812900ea63167597c375fa0cb268f15c /Lib
parent7322ff15614fb3f25eae565f00f9beaf62f71314 (diff)
downloadcpython-9216a5336fc3c5b594bba1ae18779100c207b23f.zip
cpython-9216a5336fc3c5b594bba1ae18779100c207b23f.tar.gz
cpython-9216a5336fc3c5b594bba1ae18779100c207b23f.tar.bz2
[3.13] gh-117398: Revert gh-119636, Add multiphase support to _datetime (#119639)
Revert "[3.13] gh-117398: Add multiphase support to _datetime (gh-119373) (gh-119636)" This reverts commit d58ebf073c755c2f0f6e4ef2296b48a4c75e5f1c.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/datetimetester.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
index ba7f185..b3838d5 100644
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -47,26 +47,6 @@ except ImportError:
pass
#
-# This is copied from test_import/__init__.py.
-# XXX Move it to support/__init__.py.
-def no_rerun(reason):
- """Skip rerunning for a particular test.
-
- WARNING: Use this decorator with care; skipping rerunning makes it
- impossible to find reference leaks. Provide a clear reason for skipping the
- test using the 'reason' parameter.
- """
- def deco(func):
- _has_run = False
- def wrapper(self):
- nonlocal _has_run
- if _has_run:
- self.skipTest(reason)
- func(self)
- _has_run = True
- return wrapper
- return deco
-
pickle_loads = {pickle.loads, pickle._loads}
pickle_choices = [(pickle, pickle, proto)
@@ -6403,7 +6383,6 @@ class IranTest(ZoneInfoTest):
@unittest.skipIf(_testcapi is None, 'need _testcapi module')
-@no_rerun("the encapsulated datetime C API does not support reloading")
class CapiTest(unittest.TestCase):
def setUp(self):
# Since the C API is not present in the _Pure tests, skip all tests