File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ def get_container_context(ary: ArrayContainer) -> Optional[ArrayContext]:
202202@serialize_container .register (np .ndarray )
203203def _serialize_ndarray_container (ary : np .ndarray ) -> Iterable [Tuple [Any , Any ]]:
204204 if ary .dtype .char != "O" :
205- raise ValueError (
205+ raise TypeError (
206206 f"cannot seriealize '{ type (ary ).__name__ } ' with dtype '{ ary .dtype } '" )
207207
208208 # special-cased for speed
Original file line number Diff line number Diff line change @@ -904,7 +904,7 @@ def test_numpy_conversion(actx_factory):
904904 with pytest .raises (TypeError ):
905905 from_numpy (ac_actx , actx )
906906
907- with pytest .raises (ValueError ):
907+ with pytest .raises (TypeError ):
908908 to_numpy (ac , actx )
909909
910910# }}}
You can’t perform that action at this time.
0 commit comments