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 0258e6d commit 876001bCopy full SHA for 876001b
src/random.rs
@@ -187,8 +187,9 @@ mod tests {
187
Ok(bit_generator)
188
}
189
190
+ /// Test the primary use case: acquire the lock, release the GIL, then use the lock
191
#[test]
- fn bitgen() -> PyResult<()> {
192
+ fn use_outside_gil() -> PyResult<()> {
193
let mut bitgen = Python::with_gil(|py| get_bit_generator(py)?.lock())?;
194
let _ = bitgen.next_raw();
195
std::mem::drop(bitgen);
0 commit comments