Skip to content

Commit e40c8e5

Browse files
authored
add TODO item
1 parent cf3cdca commit e40c8e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/frame/test_dtypes.py

+3
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,9 @@ def test_values_with_tz_dtypes(self):
639639
# array has the same dtype as dataframe only and only if
640640
# - dataframe has a single column
641641
# - 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:`
642645
if len(df_sub.dtypes) == 1 or all(df_sub.dtypes.values=="<M8[ns]"):
643646
self.assertTrue(df_sub.values.dtype == df_sub.dtypes.values[0])
644647

0 commit comments

Comments
 (0)