サンプル
verify pytest.raises exception assertion and ExceptionInfo contract
sha256:62dd855e425a287b7dd51d1fc880c39749ca456b15af50296443bdbee9f1920e
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 1
- ビルドした署名鍵
- 1
宣言された環境
linux 24 · ubuntu · glibc 2.39 x64 pip
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962… |
2026-08-27 |
ケース
HOW- ゴール
- verify pytest.raises exception assertion and ExceptionInfo contract
- パッケージ
- シンボル
-
- pytest.raises
- 作成日
- 2026-08-27T18:00:53Z
コントラクト
- pytest.raises catches expected exception as context manager and yields ExceptionInfo with type and value
- pytest.raises matches exception message using match regex pattern
- pytest.raises accepts multiple expected exceptions as a tuple
- pytest.raises executes callable directly and returns ExceptionInfo
- pytest.raises fails with pytest.fail.Exception when no exception is raised
ファイル
- PROMPT.md
- csx.json
- requirements.txt
- sample.py
- spec.json
- test/contract.py
オリジンシーダー
匿名