示例
Resolve dateutil.tz.gettz('') to the local system timezone instead of returning None (fixed in 2.8.2)
sha256:c869de53f102a4d565bb2dc268b5131d576360610b8edd0bf6604b666bd8bcab
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Resolve dateutil.tz.gettz('') to the local system timezone instead of returning None (fixed in 2.8.2) HOW
- 包
- python-dateutil 2.8.2
- 环境
- python
- 创建时间
- 2026-08-16T05:33:17Z
契约
- assert gettz('') returns a tzinfo instance, not None
- assert gettz('') matches gettz() default local timezone
- assert gettz(':') returns the local timezone
- assert gettz() with empty TZ env var returns the local timezone
- assert datetime.now(gettz('')) produces a timezone-aware datetime
文件
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9