Skip to content

Commit 486e384

Browse files
committed
TST: skip some timedelta plotting tests on mac (on travis) for precision display issues
xref #15067
1 parent 1400305 commit 486e384

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/source/whatsnew/v0.20.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ Other enhancements
156156
- ``DataFrame.to_excel()`` has a new ``freeze_panes`` parameter to turn on Freeze Panes when exporting to Excel (:issue:`15160`)
157157
- HTML table output skips ``colspan`` or ``rowspan`` attribute if equal to 1. (:issue:`15403`)
158158
- ``pd.TimedeltaIndex`` now has a custom datetick formatter specifically designed for nanosecond level precision (:issue:`8711`)
159+
159160
.. _ISO 8601 duration: https://en.wikipedia.org/wiki/ISO_8601#Durations
160161

161162
.. _whatsnew_0200.api_breaking:

pandas/tests/plotting/test_datetimelike.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import numpy as np
99
from pandas import Index, Series, DataFrame
10-
10+
from pandas.compat import is_platform_mac
1111
from pandas.tseries.index import date_range, bdate_range
1212
from pandas.tseries.tdi import timedelta_range
1313
from pandas.tseries.offsets import DateOffset
@@ -1272,6 +1272,8 @@ def test_plot_outofbounds_datetime(self):
12721272
self.plt.plot(values)
12731273

12741274
def test_format_timedelta_ticks_narrow(self):
1275+
if is_platform_mac():
1276+
pytest.skip("skip on mac for precision display issue on older mpl")
12751277

12761278
expected_labels = [
12771279
'00:00:00.00000000{:d}'.format(i)
@@ -1288,6 +1290,8 @@ def test_format_timedelta_ticks_narrow(self):
12881290
self.assertEqual(l.get_text(), l_expected)
12891291

12901292
def test_format_timedelta_ticks_wide(self):
1293+
if is_platform_mac():
1294+
pytest.skip("skip on mac for precision display issue on older mpl")
12911295

12921296
expected_labels = [
12931297
'00:00:00',

0 commit comments

Comments
 (0)