()
| 132 | |
| 133 | #[test] |
| 134 | fn test_try_borrow_while_borrow_mut() { |
| 135 | let (gil, owner) = prepare_env(); |
| 136 | let py = gil.python(); |
| 137 | let _mut_ref = owner.string(py).borrow_mut(); |
| 138 | assert!(owner.string(py).try_borrow().is_err()); |
| 139 | } |
| 140 | |
| 141 | #[test] |
| 142 | #[should_panic(expected = "already mutably borrowed")] |
nothing calls this directly
no test coverage detected