pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

`test_declarative_module` failure with 3.15

Open clin1234 opened this issue 2 months ago • 0 comments

    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s
     Running tests/test_declarative_module.rs (target/debug/deps/test_declarative_module-5e472faf94888739)

running 4 tests
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_declarative_module ... FAILED
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_inner_module_full_path ... FAILED
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_module_names ... FAILED
test test_raw_ident_module ... ok

failures:

---- test_declarative_module stdout ----

thread 'test_declarative_module' (153331) panicked at tests/test_declarative_module.rs:169:41:
failed to wrap pymodule: PyErr { type: <class 'SystemError'>, value: SystemError("<class 'types.SimpleNamespace'> returned a result with an exception set"), traceback: None }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- test_inner_module_full_path stdout ----

thread 'test_inner_module_full_path' (153332) panicked at tests/test_declarative_module.rs:169:41:
failed to wrap pymodule: PyErr { type: <class 'SystemError'>, value: SystemError("<class 'types.SimpleNamespace'> returned a result with an exception set"), traceback: None }

---- test_module_names stdout ----

thread 'test_module_names' (153333) panicked at tests/test_declarative_module.rs:169:41:
failed to wrap pymodule: PyErr { type: <class 'SystemError'>, value: SystemError("<class 'types.SimpleNamespace'> returned a result with an exception set"), traceback: None }


failures:
    test_declarative_module
    test_inner_module_full_path
    test_module_names

test result: FAILED. 1 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s

error: test failed, to rerun pass `--test test_declarative_module`
error: 1 target failed:
    `--test test_declarative_module`

clin1234 avatar Nov 10 '25 16:11 clin1234