Files
RustPython/extra_tests/snippets/builtin___main__.py
youknowdot 519370bece Adapt essential snippet contracts to Python 3.15 final
Preserve existing coverage while following verified final behavior for script metadata, builtin signatures and loading, AST fixture construction, memoryview diagnostics, mmap search bounds, and struct format errors. The unchanged final comparator exposes the earlier expectations; focused native baseline failures establish the required implementation changes.

Assisted-by: OpenAI Codex:model identifier unavailable
2026-10-10 00:53:45 +09:00

6 lines
156 B
Python

import sys
main_module = sys.modules["__main__"]
assert main_module.__file__.endswith("builtin___main__.py")
assert not hasattr(main_module, "__cached__")