Removed stray newline character from error message

This commit is contained in:
R2D2 2021-06-09 14:25:49 +02:00
parent ec40446fa3
commit d3208b005e
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ fn test_tuple_struct_error_message() {
let tup = Tuple::extract(tup.as_ref(py));
assert!(tup.is_err());
assert_eq!(
"TypeError: failed to extract field Tuple.0: \'int\' object cannot be converted to \'PyString\'\n",
"TypeError: failed to extract field Tuple.0: \'int\' object cannot be converted to \'PyString\'",
tup.unwrap_err().to_string()
)
}