File tree Expand file tree Collapse file tree
tests/test_dtype/test_npy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ def cast_scalar(self, data: object) -> np.bool_:
246246 """
247247 if self ._check_scalar (data ):
248248 return np .bool_ (data )
249- msg = (
249+ msg = ( # pragma: no cover
250250 f"Cannot convert object { data !r} with type { type (data )} to a scalar compatible with the "
251251 f"data type { self } ."
252252 )
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def cast_scalar(self, data: object) -> np.str_:
385385
386386 return self .to_native_dtype ().type (str (data )[: self .length ])
387387
388- msg = (
388+ msg = ( # pragma: no cover
389389 f"Cannot convert object { data !r} with type { type (data )} to a scalar compatible with the "
390390 f"data type { self } ."
391391 )
@@ -711,11 +711,11 @@ def cast_scalar(self, data: object) -> str:
711711 """
712712 if self ._check_scalar (data ):
713713 return self ._cast_scalar_unchecked (data )
714- msg = (
714+ msg = ( # pragma: no cover
715715 f"Cannot convert object { data !r} with type { type (data )} to a scalar compatible with the "
716716 f"data type { self } ."
717717 )
718- raise TypeError (msg )
718+ raise TypeError (msg ) # pragma: no cover
719719
720720
721721if _NUMPY_SUPPORTS_VLEN_STRING :
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class TestNullTerminatedBytes(BaseTestZDType):
2424 "|S" ,
2525 "|U10" ,
2626 "|f8" ,
27+ {"name" : "|S4" , "object_codec_id" : "vlen-bytes" },
2728 )
2829 invalid_json_v3 = (
2930 {"name" : "fixed_length_ascii" , "configuration" : {"length_bits" : 0 }},
You can’t perform that action at this time.
0 commit comments