File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -915,22 +915,10 @@ def test_format(self):
915
915
self ._check_method_works (Index .format )
916
916
917
917
# GH 14626
918
- # our formatting is different by definition when we have
919
- # ms vs us precision (e.g. trailing zeros);
920
- # so don't compare this case
921
- def datetime_now_without_trailing_zeros ():
922
- now = datetime .now ()
923
-
924
- while str (now ).endswith ("000" ):
925
- now = datetime .now ()
926
-
927
- return now
928
-
929
- index = Index ([datetime_now_without_trailing_zeros ()])
930
-
931
918
# windows has different precision on datetime.datetime.now (it doesn't
932
919
# include us since the default for Timestamp shows these but Index
933
- # formating does not we are skipping
920
+ # formating does not we are skipping)
921
+ index = Index ([datetime .now ()])
934
922
if not is_platform_windows ():
935
923
formatted = index .format ()
936
924
expected = [str (index [0 ])]
You can’t perform that action at this time.
0 commit comments