()
| 115 | |
| 116 | #[test] |
| 117 | fn test_try_borrow_mut_while_borrow() { |
| 118 | let (gil, owner) = prepare_env(); |
| 119 | let py = gil.python(); |
| 120 | let _ref = owner.string(py).borrow(); |
| 121 | assert!(owner.string(py).try_borrow_mut().is_err()); |
| 122 | } |
| 123 | |
| 124 | #[test] |
| 125 | #[should_panic(expected = "already borrowed")] |
nothing calls this directly
no test coverage detected