Skip to content

Commit

Permalink
Uncomment a test
Browse files Browse the repository at this point in the history
  • Loading branch information
snuderl committed Feb 4, 2024
1 parent eca943e commit d1e967e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d1e967e

Please sign in to comment.