File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 19
19
from pandas .util .testing import (assert_almost_equal , assertRaisesRegexp ,
20
20
assert_copy )
21
21
from pandas import compat
22
- from pandas .compat import long
22
+ from pandas .compat import long , is_platform_windows
23
23
24
24
import pandas .util .testing as tm
25
25
import pandas .core .config as cf
@@ -1000,9 +1000,15 @@ def test_format(self):
1000
1000
self ._check_method_works (Index .format )
1001
1001
1002
1002
index = Index ([datetime .now ()])
1003
- formatted = index .format ()
1004
- expected = [str (index [0 ])]
1005
- self .assertEqual (formatted , expected )
1003
+
1004
+
1005
+ # windows has different precision on datetime.datetime.now (it doesn't include us
1006
+ # since the default for Timestamp shows these but Index formating does not
1007
+ # we are skipping
1008
+ if not is_platform_windows :
1009
+ formatted = index .format ()
1010
+ expected = [str (index [0 ])]
1011
+ self .assertEqual (formatted , expected )
1006
1012
1007
1013
# 2845
1008
1014
index = Index ([1 , 2.0 + 3.0j , np .nan ])
You can’t perform that action at this time.
0 commit comments