샘플
Configure WRAPT_DISABLE_EXTENSIONS environment strings and decorator enabled flags without silent C extension deactivation or lost introspection
sha256:7ea6f89cb5cb7fdfeb8506e92a3a052d6c25e5a6ef58d5cde04cede70d7b5656
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Configure WRAPT_DISABLE_EXTENSIONS environment strings and decorator enabled flags without silent C extension deactivation or lost introspection HOW
- 패키지
- wrapt 2.2.2
- 환경
- python
- 생성일
- 2026-08-16T07:09:21Z
컨트랙트
- assert setting WRAPT_DISABLE_EXTENSIONS to 'false' or '0' string evaluates truthy in Python and silently disables C extensions
- assert unsetting WRAPT_DISABLE_EXTENSIONS or setting empty string keeps C extensions enabled with module _wrappers
- assert mutating os.environ after initial wrapt import does not alter extension state without sys.modules cache invalidation
- assert @wrapt.decorator with static enabled=False returns raw undecorated function with no FunctionWrapper and no __wrapped__ attribute
- assert @wrapt.decorator with dynamic callable enabled returns FunctionWrapper preserving __wrapped__ and allowing runtime toggling
파일
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/config.py
- 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