()
| 98 | |
| 99 | #[test] |
| 100 | fn test_try_leak_while_borrow_mut() { |
| 101 | let (gil, owner) = prepare_env(); |
| 102 | let py = gil.python(); |
| 103 | let _mut_ref = owner.string(py).borrow_mut(); |
| 104 | assert!(owner.string(py).try_leak_immutable().is_err()); |
| 105 | } |
| 106 | |
| 107 | #[test] |
| 108 | #[should_panic(expected = "already mutably borrowed")] |
nothing calls this directly
no test coverage detected