| 1 |
Index: pythonize/Cargo.toml |
| 2 |
=================================================================== |
| 3 |
--- pythonize.orig/Cargo.toml |
| 4 |
+++ pythonize/Cargo.toml |
| 5 |
@@ -51,7 +51,7 @@ name = "test_with_serde_path_to_err" |
| 6 |
path = "tests/test_with_serde_path_to_err.rs" |
| 7 |
|
| 8 |
[dependencies.pyo3] |
| 9 |
-version = "0.28" |
| 10 |
+version = ">=0.27,<0.29" |
| 11 |
default-features = false |
| 12 |
|
| 13 |
[dependencies.serde] |
| 14 |
@@ -69,7 +69,7 @@ default-features = false |
| 15 |
version = "1.0.2" |
| 16 |
|
| 17 |
[dev-dependencies.pyo3] |
| 18 |
-version = "0.28" |
| 19 |
+version = ">=0.27,<0.29" |
| 20 |
features = [ |
| 21 |
"auto-initialize", |
| 22 |
"macros", |
| 23 |
Index: pythonize/tests/test_with_serde_path_to_err.rs |
| 24 |
=================================================================== |
| 25 |
--- pythonize.orig/tests/test_with_serde_path_to_err.rs |
| 26 |
+++ pythonize/tests/test_with_serde_path_to_err.rs |
| 27 |
@@ -100,10 +100,12 @@ fn test_de_invalid() { |
| 28 |
let err = serde_path_to_error::deserialize::<_, Root<String>>(de).unwrap_err(); |
| 29 |
|
| 30 |
assert_eq!(err.path().to_string(), "root_map.nested_1.nested_key"); |
| 31 |
- assert_eq!( |
| 32 |
+ if err.to_string() != "root_map.nested_1.nested_key: unexpected type: 'int' object cannot be cast as 'str'" { |
| 33 |
+ assert_eq!( |
| 34 |
err.to_string(), |
| 35 |
"root_map.nested_1.nested_key: unexpected type: 'int' object is not an instance of 'str'" |
| 36 |
- ); |
| 37 |
+ ); |
| 38 |
+ } |
| 39 |
}) |
| 40 |
} |
| 41 |
|