Files
Paolo Bonzini ce3543969d python: switch (again) default rust_abi for extension modules to C
Adding `rust_abi: c` automatically was broken by commit b5f61587c
("modules/python: rework extension_module method for typing"),
fix it again.

While at it, be more careful - ensure that rust_abi is only added
if the caller provided neither of rust_abi and rust_crate_type.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2026-07-18 21:46:28 +02:00

12 lines
250 B
Python
Executable File

#!/usr/bin/env python3
import tachyon
result = tachyon.phaserize('shoot')
if not isinstance(result, int):
raise SystemExit('Returned result not an integer.')
if result != 1:
raise SystemExit('Returned result {} is not 1.'.format(result))