File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1919from pandas .util .testing import (assert_almost_equal , assertRaisesRegexp ,
2020 assert_copy )
2121from pandas import compat
22- from pandas .compat import long
22+ from pandas .compat import long , is_platform_windows
2323
2424import pandas .util .testing as tm
2525import pandas .core .config as cf
@@ -1000,9 +1000,15 @@ def test_format(self):
10001000 self ._check_method_works (Index .format )
10011001
10021002 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 )
10061012
10071013 # 2845
10081014 index = Index ([1 , 2.0 + 3.0j , np .nan ])
You can’t perform that action at this time.
0 commit comments