Uncomment a test

This commit is contained in:
Blaž Šnuderl 2024-02-04 07:31:29 +01:00
parent eca943ea35
commit d1e967e9ea
1 changed files with 8 additions and 8 deletions

View File

@ -629,14 +629,14 @@ mod tests {
});
}
// #[test]
// fn test_try_from_unchecked() {
// Python::with_gil(|py| {
// let list = PyList::new(py, [1, 2, 3]);
// let val = unsafe { <PyList as PyTryFrom>::try_from_unchecked(list.as_ref()) };
// assert!(list.is(val));
// });
// }
#[test]
fn test_try_from_unchecked() {
Python::with_gil(|py| {
let list = PyList::new(py, [1, 2, 3]);
let val = unsafe { <PyList as PyTryFrom>::try_from_unchecked(list.as_ref()) };
assert!(list.is(val));
});
}
}
#[test]