Skip to content
Prev Previous commit
Next Next commit
Renamed Variable
  • Loading branch information
VanshAgarwal24036 committed Jan 21, 2026
commit b5890680ac2fc25ff59a8812de69cc0547bd92ab
6 changes: 3 additions & 3 deletions Lib/test/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def load_tests(loader, tests, pattern):
try:
import _datetime
except ImportError:
has_datetime = False
has_datetime_ext = False
else:
has_datetime = True
has_datetime_ext = True
del _datetime
pure_tests = import_fresh_module(TESTS,
fresh=['datetime', '_pydatetime', '_strptime'],
Expand Down Expand Up @@ -52,7 +52,7 @@ def load_tests(loader, tests, pattern):
class Wrapper(cls):
@classmethod
def setUpClass(cls_, module=module):
if module is fast_tests and not has_datetime:
if module is fast_tests and not has_datetime_ext:
raise unittest.SkipTest("requires _datetime module")

cls_._save_sys_modules = sys.modules.copy()
Expand Down
Loading