Skip to content

doc unit tests failure with 3.15 #5614

@clin1234

Description

@clin1234
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s
     Running tests/test_module.rs (target/debug/deps/test_module-500b4c594cd8be90)

running 13 tests
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_custom_names ... ok
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_module_dict ... FAILED
test test_module_doc_hidden ... FAILED
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_module_dunder_all ... ok
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_module_from_code_bound ... ok
test test_module_functions_with_module ... ok
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_nesting ... ok
test test_module_renaming ... ok
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_module_with_explicit_py_arg ... ok
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python

The above exception was the direct cause of the following exception:

RuntimeError: An error occurred while initializing class AnonClass
test test_module_with_functions ... FAILED
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_module_with_pyfn ... ok
SystemError: invalid PyModuleDef, extension possibly compiled for non-free-threaded Python
test test_raw_idents ... ok
pyo3_runtime.PanicException: failed to create type object for `AnonClass`
test test_module_with_constant ... FAILED

failures:

---- test_module_dict stdout ----

thread 'test_module_dict' (157196) panicked at tests/test_module.rs:322:22:
failed to wrap pymodule: PyErr { type: <class 'SystemError'>, value: SystemError('execution of module module_dict raised unreported exception'), traceback: None }
stack backtrace:
   0:     0x612b77d41eb2 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1:     0x612b77d41eb2 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2:     0x612b77d41eb2 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9
   3:     0x612b77d41eb2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h4e0a3aeea0f9c085
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26
   4:     0x612b77d5221f - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76
   5:     0x612b77d5221f - core::fmt::write::hecf68a131630c74d
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25
   6:     0x612b77d0f0e1 - std::io::default_write_fmt::ha6b238eff7f0ef8a
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11
   7:     0x612b77d0f0e1 - std::io::Write::write_fmt::h9846fe3d2a36c1ea
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13
   8:     0x612b77d1b1b2 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9
   9:     0x612b77d1fe5f - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27
  10:     0x612b77d1fcf1 - std::panicking::default_hook::h63f9bf8161c5d325
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9
  11:     0x612b77c9da6e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hb8126f8384f98101
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9
  12:     0x612b77c9da6e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21
  13:     0x612b77d205cf - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::ha703f6686c81d0c6
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9
  14:     0x612b77d205cf - std::panicking::panic_with_hook::h3173740e06bd0752
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13
  15:     0x612b77d2037a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13
  16:     0x612b77d1b2e9 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18
  17:     0x612b77d0370d - __rustc[de0091b922c53d7e]::rust_begin_unwind
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5
  18:     0x612b77d59c00 - core::panicking::panic_fmt::h5138da2ef87be35b
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14
  19:     0x612b77d59266 - core::result::unwrap_failed::h5d9b16b0b732a2ac
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/result.rs:1855:5
  20:     0x612b77c57d7d - core::result::Result<T,E>::expect::h21af6209fb3fd711
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/result.rs:1178:23
  21:     0x612b77c655d4 - test_module::test_module_dict::{{closure}}::{{closure}}::h299d97627017815e
                               at /home/codespace/pyo3/pyo3/src/macros.rs:163:18
  22:     0x612b77c64f71 - test_module::test_module_dict::{{closure}}::h8b838f1f12cb38b4
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:322:22
  23:     0x612b77c5a4c3 - pyo3::marker::Python::attach::ha5cb11ff22d546b0
                               at /home/codespace/pyo3/pyo3/src/marker.rs:426:9
  24:     0x612b77c5cafd - test_module::test_module_dict::h516b0393ba6ee43f
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:321:5
  25:     0x612b77c64f47 - test_module::test_module_dict::{{closure}}::h33eed833bbf20190
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:314:22
  26:     0x612b77c5ae66 - core::ops::function::FnOnce::call_once::hd229b496f167895f
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  27:     0x612b77c9d84b - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  28:     0x612b77c9d84b - test::__rust_begin_short_backtrace::h447963718d05a644
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18
  29:     0x612b77cb3485 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74
  30:     0x612b77cb3485 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9
  31:     0x612b77cb3485 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  32:     0x612b77cb3485 - std::panicking::catch_unwind::h24d3b93458b5ba67
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  33:     0x612b77cb3485 - std::panic::catch_unwind::h46eeec7cf9c9336c
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  34:     0x612b77cb3485 - test::run_test_in_process::h290de6e559006104
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27
  35:     0x612b77cb3485 - test::run_test::{{closure}}::h26eeb2c5f7e9a995
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43
  36:     0x612b77c89c84 - test::run_test::{{closure}}::h85af00882daabeaa
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41
  37:     0x612b77c89c84 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18
  38:     0x612b77c8d62a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17
  39:     0x612b77c8d62a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9
  40:     0x612b77c8d62a - std::panicking::catch_unwind::do_call::he3e0bef721d99583
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  41:     0x612b77c8d62a - std::panicking::catch_unwind::ha8241964d3d773cd
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  42:     0x612b77c8d62a - std::panic::catch_unwind::ha8554bc7696cae72
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  43:     0x612b77c8d62a - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30
  44:     0x612b77c8d62a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  45:     0x612b77d164df - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h43642ed9c40e0ab2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9
  46:     0x612b77d164df - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17
  47:     0x75af85f23aa4 - start_thread
                               at ./nptl/pthread_create.c:447:8
  48:     0x75af85fb0c3c - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
  49:                0x0 - <unknown>

---- test_module_doc_hidden stdout ----

thread 'test_module_doc_hidden' (157215) panicked at tests/test_module.rs:532:17:
failed to wrap pymodule: PyErr { type: <class 'SystemError'>, value: SystemError('execution of module my_module raised unreported exception'), traceback: None }
stack backtrace:
   0:     0x612b77d41eb2 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1:     0x612b77d41eb2 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2:     0x612b77d41eb2 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9
   3:     0x612b77d41eb2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h4e0a3aeea0f9c085
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26
   4:     0x612b77d5221f - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76
   5:     0x612b77d5221f - core::fmt::write::hecf68a131630c74d
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25
   6:     0x612b77d0f0e1 - std::io::default_write_fmt::ha6b238eff7f0ef8a
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11
   7:     0x612b77d0f0e1 - std::io::Write::write_fmt::h9846fe3d2a36c1ea
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13
   8:     0x612b77d1b1b2 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9
   9:     0x612b77d1fe5f - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27
  10:     0x612b77d1fcf1 - std::panicking::default_hook::h63f9bf8161c5d325
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9
  11:     0x612b77c9da6e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hb8126f8384f98101
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9
  12:     0x612b77c9da6e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21
  13:     0x612b77d205cf - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::ha703f6686c81d0c6
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9
  14:     0x612b77d205cf - std::panicking::panic_with_hook::h3173740e06bd0752
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13
  15:     0x612b77d2037a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13
  16:     0x612b77d1b2e9 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18
  17:     0x612b77d0370d - __rustc[de0091b922c53d7e]::rust_begin_unwind
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5
  18:     0x612b77d59c00 - core::panicking::panic_fmt::h5138da2ef87be35b
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14
  19:     0x612b77d59266 - core::result::unwrap_failed::h5d9b16b0b732a2ac
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/result.rs:1855:5
  20:     0x612b77c57d7d - core::result::Result<T,E>::expect::h21af6209fb3fd711
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/result.rs:1178:23
  21:     0x612b77c6b2f4 - test_module::test_module_doc_hidden::{{closure}}::{{closure}}::h6ffcd9996f82479a
                               at /home/codespace/pyo3/pyo3/src/macros.rs:163:18
  22:     0x612b77c6ac61 - test_module::test_module_doc_hidden::{{closure}}::h58c8e289acf38bfb
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:532:17
  23:     0x612b77c5a733 - pyo3::marker::Python::attach::hd9e01527809f8e7c
                               at /home/codespace/pyo3/pyo3/src/marker.rs:426:9
  24:     0x612b77c5e30d - test_module::test_module_doc_hidden::he3e19c4c11c93811
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:531:5
  25:     0x612b77c6b2a7 - test_module::test_module_doc_hidden::{{closure}}::hf467aa25d41ac175
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:523:28
  26:     0x612b77c5ac66 - core::ops::function::FnOnce::call_once::h7a19313f828ade55
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  27:     0x612b77c9d84b - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  28:     0x612b77c9d84b - test::__rust_begin_short_backtrace::h447963718d05a644
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18
  29:     0x612b77cb3485 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74
  30:     0x612b77cb3485 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9
  31:     0x612b77cb3485 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  32:     0x612b77cb3485 - std::panicking::catch_unwind::h24d3b93458b5ba67
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  33:     0x612b77cb3485 - std::panic::catch_unwind::h46eeec7cf9c9336c
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  34:     0x612b77cb3485 - test::run_test_in_process::h290de6e559006104
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27
  35:     0x612b77cb3485 - test::run_test::{{closure}}::h26eeb2c5f7e9a995
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43
  36:     0x612b77c89c84 - test::run_test::{{closure}}::h85af00882daabeaa
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41
  37:     0x612b77c89c84 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18
  38:     0x612b77c8d62a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17
  39:     0x612b77c8d62a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9
  40:     0x612b77c8d62a - std::panicking::catch_unwind::do_call::he3e0bef721d99583
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  41:     0x612b77c8d62a - std::panicking::catch_unwind::ha8241964d3d773cd
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  42:     0x612b77c8d62a - std::panic::catch_unwind::ha8554bc7696cae72
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  43:     0x612b77c8d62a - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30
  44:     0x612b77c8d62a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  45:     0x612b77d164df - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h43642ed9c40e0ab2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9
  46:     0x612b77d164df - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17
  47:     0x75af85f23aa4 - start_thread
                               at ./nptl/pthread_create.c:447:8
  48:     0x75af85fb0c3c - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
  49:                0x0 - <unknown>

---- test_module_with_functions stdout ----

thread 'test_module_with_functions' (157232) panicked at tests/test_module.rs:78:13:
failed to wrap pymodule: PyErr { type: <class 'RuntimeError'>, value: RuntimeError('An error occurred while initializing class AnonClass'), traceback: None }
stack backtrace:
   0:     0x612b77d41eb2 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1:     0x612b77d41eb2 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2:     0x612b77d41eb2 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9
   3:     0x612b77d41eb2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h4e0a3aeea0f9c085
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26
   4:     0x612b77d5221f - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76
   5:     0x612b77d5221f - core::fmt::write::hecf68a131630c74d
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25
   6:     0x612b77d0f0e1 - std::io::default_write_fmt::ha6b238eff7f0ef8a
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11
   7:     0x612b77d0f0e1 - std::io::Write::write_fmt::h9846fe3d2a36c1ea
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13
   8:     0x612b77d1b1b2 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9
   9:     0x612b77d1fe5f - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27
  10:     0x612b77d1fcf1 - std::panicking::default_hook::h63f9bf8161c5d325
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9
  11:     0x612b77c9da6e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hb8126f8384f98101
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9
  12:     0x612b77c9da6e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21
  13:     0x612b77d205cf - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::ha703f6686c81d0c6
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9
  14:     0x612b77d205cf - std::panicking::panic_with_hook::h3173740e06bd0752
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13
  15:     0x612b77d2037a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13
  16:     0x612b77d1b2e9 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18
  17:     0x612b77d0370d - __rustc[de0091b922c53d7e]::rust_begin_unwind
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5
  18:     0x612b77d59c00 - core::panicking::panic_fmt::h5138da2ef87be35b
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14
  19:     0x612b77d59266 - core::result::unwrap_failed::h5d9b16b0b732a2ac
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/result.rs:1855:5
  20:     0x612b77c57d7d - core::result::Result<T,E>::expect::h21af6209fb3fd711
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/result.rs:1178:23
  21:     0x612b77c6f124 - test_module::test_module_with_functions::{{closure}}::{{closure}}::hdf10c9c1081132af
                               at /home/codespace/pyo3/pyo3/src/macros.rs:163:18
  22:     0x612b77c6c0b0 - test_module::test_module_with_functions::{{closure}}::hf7e498cbd6981a60
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:78:13
  23:     0x612b77c5a8d3 - pyo3::marker::Python::attach::hf55b3fda369f42ca
                               at /home/codespace/pyo3/pyo3/src/marker.rs:426:9
  24:     0x612b77c5ec3d - test_module::test_module_with_functions::h33dfd525788feac3
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:75:5
  25:     0x612b77c6c077 - test_module::test_module_with_functions::{{closure}}::h0ca42ab4711e0c98
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:37:32
  26:     0x612b77c5ab66 - core::ops::function::FnOnce::call_once::h4dd6b83cbc18c906
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  27:     0x612b77c9d84b - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  28:     0x612b77c9d84b - test::__rust_begin_short_backtrace::h447963718d05a644
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18
  29:     0x612b77cb3485 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74
  30:     0x612b77cb3485 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9
  31:     0x612b77cb3485 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  32:     0x612b77cb3485 - std::panicking::catch_unwind::h24d3b93458b5ba67
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  33:     0x612b77cb3485 - std::panic::catch_unwind::h46eeec7cf9c9336c
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  34:     0x612b77cb3485 - test::run_test_in_process::h290de6e559006104
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27
  35:     0x612b77cb3485 - test::run_test::{{closure}}::h26eeb2c5f7e9a995
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43
  36:     0x612b77c89c84 - test::run_test::{{closure}}::h85af00882daabeaa
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41
  37:     0x612b77c89c84 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18
  38:     0x612b77c8d62a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17
  39:     0x612b77c8d62a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9
  40:     0x612b77c8d62a - std::panicking::catch_unwind::do_call::he3e0bef721d99583
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  41:     0x612b77c8d62a - std::panicking::catch_unwind::ha8241964d3d773cd
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  42:     0x612b77c8d62a - std::panic::catch_unwind::ha8554bc7696cae72
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  43:     0x612b77c8d62a - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30
  44:     0x612b77c8d62a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  45:     0x612b77d164df - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h43642ed9c40e0ab2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9
  46:     0x612b77d164df - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17
  47:     0x75af85f23aa4 - start_thread
                               at ./nptl/pthread_create.c:447:8
  48:     0x75af85fb0c3c - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
  49:                0x0 - <unknown>

---- test_module_with_constant stdout ----

thread 'test_module_with_constant' (157230) panicked at src/impl_/pyclass/lazy_type_object.rs:260:5:
failed to create type object for `AnonClass`
stack backtrace:
   0:     0x612b77d41eb2 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
   1:     0x612b77d41eb2 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
   2:     0x612b77d41eb2 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9
   3:     0x612b77d41eb2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h4e0a3aeea0f9c085
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26
   4:     0x612b77d5221f - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76
   5:     0x612b77d5221f - core::fmt::write::hecf68a131630c74d
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25
   6:     0x612b77d0f0e1 - std::io::default_write_fmt::ha6b238eff7f0ef8a
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11
   7:     0x612b77d0f0e1 - std::io::Write::write_fmt::h9846fe3d2a36c1ea
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13
   8:     0x612b77d1b1b2 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9
   9:     0x612b77d1fe5f - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27
  10:     0x612b77d1fcf1 - std::panicking::default_hook::h63f9bf8161c5d325
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9
  11:     0x612b77c9da6e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hb8126f8384f98101
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9
  12:     0x612b77c9da6e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21
  13:     0x612b77d205cf - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::ha703f6686c81d0c6
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9
  14:     0x612b77d205cf - std::panicking::panic_with_hook::h3173740e06bd0752
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13
  15:     0x612b77d2037a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13
  16:     0x612b77d1b2e9 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18
  17:     0x612b77d0370d - __rustc[de0091b922c53d7e]::rust_begin_unwind
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5
  18:     0x612b77d59c00 - core::panicking::panic_fmt::h5138da2ef87be35b
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14
  19:     0x612b77cc6a31 - pyo3::impl_::pyclass::lazy_type_object::type_object_init_failed::h2ca2de3e00a463e3
                               at /home/codespace/pyo3/pyo3/src/impl_/pyclass/lazy_type_object.rs:260:5
  20:     0x612b77c71e86 - <test_module::AnonClass as pyo3::type_object::PyTypeInfo>::type_object_raw::{{closure}}::h6a2fe295116ed65a
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:11:1
  21:     0x612b77c577c8 - core::result::Result<T,E>::unwrap_or_else::h49cbec2fd12d70bd
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/result.rs:1615:23
  22:     0x612b77c6221c - <test_module::AnonClass as pyo3::type_object::PyTypeInfo>::type_object_raw::h0606afe13f68ad7d
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:11:1
  23:     0x612b77c62906 - pyo3::pyclass_init::PyClassInitializer<T>::create_class_object::hbf839a4c52f51635
                               at /home/codespace/pyo3/pyo3/src/pyclass_init.rs:152:55
  24:     0x612b77c74c35 - pyo3::instance::Bound<T>::new::hccb7ef2092a5e095
                               at /home/codespace/pyo3/pyo3/src/instance.rs:103:22
  25:     0x612b77c62241 - <test_module::AnonClass as pyo3::conversion::IntoPyObject>::into_pyobject::hfb4b22c273d79a88
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:11:1
  26:     0x612b77c71c4a - pyo3::conversion::IntoPyObjectExt::into_pyobject_or_pyerr::h76f53d6d9aa3e86f
                               at /home/codespace/pyo3/pyo3/src/conversion.rs:242:20
  27:     0x612b77c73bda - <pyo3::instance::Bound<pyo3::types::module::PyModule> as pyo3::types::module::PyModuleMethods>::add::hf6e769a4a9b4876d
                               at /home/codespace/pyo3/pyo3/src/types/module.rs:490:19
  28:     0x612b77c5e8c3 - test_module::test_module_with_constant::module_with_constant::h5f3fd72053bec6cc
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:410:11
  29:     0x612b77c5ea09 - test_module::test_module_with_constant::<impl test_module::test_module_with_constant::module_with_constant::ModuleExec>::__pyo3_module_exec::he8704439351b9eb3
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:406:5
  30:     0x612b77c7c39c - pyo3::impl_::trampoline::module_exec::{{closure}}::h270f19b1cdcedcfd
                               at /home/codespace/pyo3/pyo3/src/impl_/trampoline.rs:26:13
  31:     0x612b77c7c13b - pyo3::impl_::trampoline::trampoline::{{closure}}::h0452162cd4ce978b
                               at /home/codespace/pyo3/pyo3/src/impl_/trampoline.rs:194:54
  32:     0x612b77c7b295 - std::panicking::catch_unwind::do_call::hab72ab3833284156
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  33:     0x612b77c758eb - __rust_try
  34:     0x612b77c75850 - std::panicking::catch_unwind::h8f107404e796e7c8
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  35:     0x612b77c75850 - std::panic::catch_unwind::hf4c6100ae62b3a0f
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  36:     0x612b77c7bb66 - pyo3::impl_::trampoline::trampoline::ha39017eb3a8c4905
                               at /home/codespace/pyo3/pyo3/src/impl_/trampoline.rs:194:9
  37:     0x612b77c71f0d - pyo3::impl_::trampoline::module_exec::hbc9dd9e986aad834
                               at /home/codespace/pyo3/pyo3/src/impl_/trampoline.rs:24:9
  38:     0x612b77c5e9b5 - test_module::test_module_with_constant::module_with_constant::_PYO3_DEF::__pyo3_module_exec::h607c6c1bdbd5a0a5
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:406:5
  39:     0x75af86268046 - PyModule_ExecDef
  40:     0x612b77cd8ef1 - pyo3::impl_::pymodule::ModuleDef::make_module::{{closure}}::hed19e9c45aed89a7
                               at /home/codespace/pyo3/pyo3/src/impl_/pymodule.rs:167:29
  41:     0x612b77cd03e3 - pyo3::sync::once_lock::try_init_once_cell_py_attached::{{closure}}::hb11861019b6ede5d
                               at /home/codespace/pyo3/pyo3/src/sync/once_lock.rs:212:9
  42:     0x612b77ce6019 - once_cell::imp::OnceCell<T>::initialize::{{closure}}::hd5bb17348b488819
                               at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/once_cell-1.21.3/src/imp_std.rs:72:23
  43:     0x612b77cfefd6 - core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut::he8883c9f56d0998a
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:298:21
  44:     0x612b77d0002b - once_cell::imp::initialize_or_wait::ha09de1156c6fd10c
                               at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/once_cell-1.21.3/src/imp_std.rs:196:20
  45:     0x612b77ce5956 - once_cell::imp::OnceCell<T>::initialize::h3f19cc3862c9cb6f
                               at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/once_cell-1.21.3/src/imp_std.rs:68:9
  46:     0x612b77cf4754 - once_cell::sync::OnceCell<T>::get_or_try_init::hea196543f56f5270
                               at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/once_cell-1.21.3/src/lib.rs:1161:20
  47:     0x612b77cd01f4 - pyo3::sync::once_lock::try_init_once_cell_py_attached::h37e27d1e1e9d1c0f
                               at /home/codespace/pyo3/pyo3/src/sync/once_lock.rs:210:10
  48:     0x612b77ccfea7 - pyo3::sync::once_lock::PyOnceLock<T>::get_or_try_init::{{closure}}::h84158ca3492d172d
                               at /home/codespace/pyo3/pyo3/src/sync/once_lock.rs:80:29
  49:     0x612b77cc8372 - core::option::Option<T>::map_or_else::hba60684c007894bd
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/option.rs:1272:21
  50:     0x612b77ccfe15 - pyo3::sync::once_lock::PyOnceLock<T>::get_or_try_init::hdb18845ac38b84ff
                               at /home/codespace/pyo3/pyo3/src/sync/once_lock.rs:80:14
  51:     0x612b77ccfa1e - pyo3::impl_::pymodule::ModuleDef::make_module::h38e3fcee0cf47081
                               at /home/codespace/pyo3/pyo3/src/impl_/pymodule.rs:161:14
  52:     0x612b77c6c039 - test_module::test_module_with_constant::{{closure}}::{{closure}}::h64e97f69f8695783
                               at /home/codespace/pyo3/pyo3/src/macros.rs:162:18
  53:     0x612b77c6b9c1 - test_module::test_module_with_constant::{{closure}}::h9776aedc806e08c3
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:417:17
  54:     0x612b77c5a323 - pyo3::marker::Python::attach::h910c7dbebd93607a
                               at /home/codespace/pyo3/pyo3/src/marker.rs:426:9
  55:     0x612b77c5e88d - test_module::test_module_with_constant::hd28e1ffe54e09a04
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:416:5
  56:     0x612b77c6c007 - test_module::test_module_with_constant::{{closure}}::hecedaa1edaf762a1
                               at /home/codespace/pyo3/pyo3/tests/test_module.rs:403:31
  57:     0x612b77c5acc6 - core::ops::function::FnOnce::call_once::h97372aca921b62d7
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  58:     0x612b77c9d84b - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  59:     0x612b77c9d84b - test::__rust_begin_short_backtrace::h447963718d05a644
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18
  60:     0x612b77cb3485 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74
  61:     0x612b77cb3485 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9
  62:     0x612b77cb3485 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  63:     0x612b77cb3485 - std::panicking::catch_unwind::h24d3b93458b5ba67
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  64:     0x612b77cb3485 - std::panic::catch_unwind::h46eeec7cf9c9336c
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  65:     0x612b77cb3485 - test::run_test_in_process::h290de6e559006104
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27
  66:     0x612b77cb3485 - test::run_test::{{closure}}::h26eeb2c5f7e9a995
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43
  67:     0x612b77c89c84 - test::run_test::{{closure}}::h85af00882daabeaa
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41
  68:     0x612b77c89c84 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18
  69:     0x612b77c8d62a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17
  70:     0x612b77c8d62a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9
  71:     0x612b77c8d62a - std::panicking::catch_unwind::do_call::he3e0bef721d99583
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40
  72:     0x612b77c8d62a - std::panicking::catch_unwind::ha8241964d3d773cd
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19
  73:     0x612b77c8d62a - std::panic::catch_unwind::ha8554bc7696cae72
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14
  74:     0x612b77c8d62a - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30
  75:     0x612b77c8d62a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5
  76:     0x612b77d164df - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h43642ed9c40e0ab2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9
  77:     0x612b77d164df - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2
                               at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17
  78:     0x75af85f23aa4 - start_thread
                               at ./nptl/pthread_create.c:447:8
  79:     0x75af85fb0c3c - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
  80:                0x0 - <unknown>
--- PyO3 is resuming a panic after fetching a PanicException from Python. ---
Python stack trace below:


failures:
    test_module_dict
    test_module_doc_hidden
    test_module_with_constant
    test_module_with_functions

test result: FAILED. 9 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.28s

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions