We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe41bd commit d4e90fcCopy full SHA for d4e90fc
src/impl_/pymodule.rs
@@ -437,7 +437,7 @@ mod tests {
437
static NAME: &CStr = ffi::c_str!("test_module");
438
static DOC: &CStr = ffi::c_str!("some doc");
439
440
- static SLOTS: PyModuleSlots<2> = PyModuleSlotsBuilder::new().build();
+ static SLOTS: PyModuleSlots<2> = PyModuleSlotsBuilder::new().with_gil_used(true).build();
441
442
unsafe {
443
let module_def: ModuleDef = ModuleDef::new(NAME, DOC, &SLOTS);
0 commit comments