CodeSampleX

サンプル

freezegun 1.5.5: Configure freezegun ignore lists, prevent queue deadlock from wiped default ignore lists, handle call-stack inspection limits, and configure real_asyncio

検証済みサンプル — pypi freezegun 1.5.5: Configure freezegun ignore lists, prevent queue deadlock from wiped default ignore lists, handle call-stack inspection…

sha256:ced890e0926f2aeefa165f3bfa8024ec62021062b020f0443b992753f24ab74e

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
2
宣言された環境 python linux x64 python python pip

検証実行環境

環境 コントラクト ステージ 実行日
python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-16
python 3.12 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-18

ケース

HOW
ゴール
Configure freezegun ignore lists, prevent queue deadlock from wiped default ignore lists, handle call-stack inspection limits, and configure real_asyncio
パッケージ
シンボル
  • freezegun.configure
  • freezegun.config.DEFAULT_IGNORE_LIST
  • freezegun.config.reset_config
  • freezegun.config.ConfigurationError
  • freezegun.freeze_time
  • freezegun.api.call_stack_inspection_limit
環境
python
作成日
2026-08-16T07:26:26Z

コントラクト

  1. assert DEFAULT_IGNORE_LIST includes threading and queue so standard concurrency primitives keep real monotonic time
  2. assert configure(default_ignore_list=...) purges threading and queue, causing queue.Queue.get(timeout) to loop indefinitely under frozen monotonic time
  3. assert configure(extend_ignore_list=...) preserves default ignore modules while adding new prefixes, allowing queue timeouts to function properly
  4. assert configure() raises ConfigurationError if both default_ignore_list and extend_ignore_list are passed together
  5. assert reset_config() restores settings.default_ignore_list back to DEFAULT_IGNORE_LIST
  6. assert freeze_time(ignore=[...]) extends the active default ignore list without mutating global settings
  7. assert an ignored module with 'from datetime import datetime' keeps real datetime, while 'import datetime; datetime.datetime.now()' is frozen
  8. assert an ignored module's calls to time.time() and time.monotonic() return real time via runtime stack inspection
  9. assert call_stack_inspection_limit (default 5) causes time.time() called through unignored helper wrappers beyond depth 3 to silently revert to frozen time
  10. assert setting call_stack_inspection_limit to 0 completely disables runtime caller inspection, forcing all modules to read frozen time
  11. assert real_asyncio=True enables real monotonic time for asyncio event loop timers while real_asyncio=False freezes loop timers

ファイル

  • NOTES.md
  • csx.json
  • requirements.txt
  • src/__init__.py
  • src/pipeline.py
  • src/worker.py
  • test/contract.py

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

csx-seed