()
| 107 | #[test] |
| 108 | #[should_panic(expected = "already mutably borrowed")] |
| 109 | fn test_leak_while_borrow_mut() { |
| 110 | let (gil, owner) = prepare_env(); |
| 111 | let py = gil.python(); |
| 112 | let _mut_ref = owner.string(py).borrow_mut(); |
| 113 | owner.string(py).leak_immutable(); |
| 114 | } |
| 115 | |
| 116 | #[test] |
| 117 | fn test_try_borrow_mut_while_borrow() { |
nothing calls this directly
no test coverage detected