Skip to content

Commit

Permalink
fix python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Oct 30, 2023
1 parent 400a537 commit 4c57940
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ fn test_error() {
Python::with_gil(|py| match python_parse(py, br#"["string""#) {
Ok(v) => panic!("unexpectedly valid: {:?}", v),
Err(e) => {
assert_eq!(
e.to_string(),
"ValueError: EOF while parsing a list at line 1 column 10"
);
assert_eq!(e.to_string(), "ValueError: EOF while parsing a list at line 1 column 9");
}
})
}
Expand All @@ -73,7 +70,7 @@ fn test_recursion_limit() {
Err(e) => {
assert_eq!(
e.to_string(),
"ValueError: recursion limit exceeded at line 1 column 202"
"ValueError: recursion limit exceeded at line 1 column 201"
);
}
})
Expand Down

0 comments on commit 4c57940

Please sign in to comment.