Skip to content

Commit fffeacd

Browse files
fix test
1 parent afe0e2f commit fffeacd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ install_requires =
3434
websockets >= 10.0,<11
3535
xarray >=0.19,<2024.12
3636
urllib3 >= 2.0, < 2.3
37-
pydantic >= 2, < 2.11
37+
pydantic >= 2.10.6, < 2.11
3838
skl2onnx >=1.17,<2
3939

4040
[options.extras_require]

tests/test_ml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_uploading_onnx_model(self):
106106
)
107107
self.assertEqual(
108108
str(exception.exception),
109-
'Model input type `TensorProto.FLOAT` does not match the expected type `RasterDataType.F64`'
109+
'Model input type `TensorProto.FLOAT` does not match the expected type `F64`'
110110
)
111111

112112
with self.assertRaises(ge.InputException) as exception:
@@ -126,5 +126,5 @@ def test_uploading_onnx_model(self):
126126
)
127127
self.assertEqual(
128128
str(exception.exception),
129-
'Model output type `TensorProto.INT64` does not match the expected type `RasterDataType.I32`'
129+
'Model output type `TensorProto.INT64` does not match the expected type `I32`'
130130
)

0 commit comments

Comments
 (0)