Skip to content
Prev Previous commit
Next Next commit
Removed whitespaces
  • Loading branch information
VanshAgarwal24036 committed Jan 20, 2026
commit b227ee9afcfa5df7782d5a2b1024bfb92a4baef5
2 changes: 1 addition & 1 deletion Lib/test/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
blocked=['_datetime'],
)
try:
import _datetime

Check failure on line 17 in Lib/test/test_datetime.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (F401)

Lib/test/test_datetime.py:17:20: F401 `_datetime` imported but unused; consider using `importlib.util.find_spec` to test for availability
has_datetime = True
except ImportError:
has_datetime = False
Comment thread
VanshAgarwal24036 marked this conversation as resolved.
Outdated
Expand Down Expand Up @@ -57,7 +57,7 @@
def setUpClass(cls_, module=module):
if suffix == "_Fast" and not has_datetime:
Comment thread
VanshAgarwal24036 marked this conversation as resolved.
Outdated
raise unittest.SkipTest("requires _datetime module")

cls_._save_sys_modules = sys.modules.copy()
sys.modules[TESTS] = module
sys.modules['datetime'] = module.datetime_module
Expand Down
Loading