File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -673,9 +673,7 @@ def test_pandas_datetime64_with_tz(self):
673
673
)
674
674
v = self .cls ("x" , data )
675
675
print (v ) # should not error
676
- if "America/New_York" in str (data .dtype ):
677
- # pandas is new enough that it has datetime64 with timezone dtype
678
- assert v .dtype == "object"
676
+ assert v .dtype == data .dtype
679
677
680
678
def test_multiindex (self ):
681
679
idx = pd .MultiIndex .from_product ([list ("abc" ), [0 , 1 ]])
@@ -3027,7 +3025,7 @@ def test_pandas_two_only_datetime_conversion_warnings(
3027
3025
var = Variable (["time" ], data .astype (dtype )) # type: ignore[arg-type]
3028
3026
3029
3027
if var .dtype .kind == "M" :
3030
- assert var .dtype == np . dtype ( "datetime64[s]" )
3028
+ assert var .dtype == dtype
3031
3029
else :
3032
3030
# The only case where a non-datetime64 dtype can occur currently is in
3033
3031
# the case that the variable is backed by a timezone-aware
You can’t perform that action at this time.
0 commit comments