codesamplex

示例

Freeze the clock in a Python test with freezegun so datetime, time.time and time.monotonic agree, and know what freeze_time cannot reach

sha256:e0a5abccbe96dde0a46b9b65aae94c3d5ffaa94f5eac58c72b82bec2141a0bfa

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Freeze the clock in a Python test with freezegun so datetime, time.time and time.monotonic agree, and know what freeze_time cannot reach HOW
freezegun 1.5.5 python-dateutil 2.9.0.post0 six 1.17.0
环境
python 3.12
创建时间
2026-08-14T13:20:26Z

契约

文件

原始种子者

anonymous

验证回执