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 87ecb35 commit babee77Copy full SHA for babee77
src/sync.rs
@@ -1408,7 +1408,7 @@ mod tests {
1408
std::thread::scope(|s| {
1409
s.spawn(|| {
1410
Python::attach(|py| {
1411
- let b = rwlock.write_py_attached(py).unwrap();
+ let b = rwlock.read_py_attached(py).unwrap();
1412
barrier.wait();
1413
// sleep to ensure the other thread actually blocks
1414
std::thread::sleep(std::time::Duration::from_millis(10));
0 commit comments