(exc: &PyBaseExceptionRef, vm: &VirtualMachine)
| 2751 | } |
| 2752 | |
| 2753 | fn is_cancelled_error(exc: &PyBaseExceptionRef, vm: &VirtualMachine) -> bool { |
| 2754 | match get_cancelled_error_type(vm) { |
| 2755 | Ok(cancelled_error) => exc.fast_isinstance(&cancelled_error), |
| 2756 | Err(_) => false, |
| 2757 | } |
| 2758 | } |
| 2759 | |
| 2760 | fn is_cancelled_error_obj(obj: &PyObjectRef, vm: &VirtualMachine) -> bool { |
| 2761 | match get_cancelled_error_type(vm) { |
no test coverage detected