We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf3cdca commit e40c8e5Copy full SHA for e40c8e5
pandas/tests/frame/test_dtypes.py
@@ -639,6 +639,9 @@ def test_values_with_tz_dtypes(self):
639
# array has the same dtype as dataframe only and only if
640
# - dataframe has a single column
641
# - or all columns are of type datetime64[ns]
642
+
643
+ # TODO: replace 2nd condition by 'all columns are of type datetime64[ns,same timezone]'
644
+ # i.e. the test should succeed when replacing the condition be `if len(set(df_sub.dtypes.values))==1:`
645
if len(df_sub.dtypes) == 1 or all(df_sub.dtypes.values=="<M8[ns]"):
646
self.assertTrue(df_sub.values.dtype == df_sub.dtypes.values[0])
647
0 commit comments