Skip to content

Commit fb7eb0b

Browse files
committed
TST: add smoketest
1 parent cdf5dad commit fb7eb0b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/matplotlib/tests/test_dates.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,16 @@ def tz_convert(*args):
583583
_test_date2num_dst(pd.date_range, tz_convert)
584584

585585

586+
def test_dateboxplot_pandas(pd):
587+
# smoke test that this doesn't fail.
588+
data = np.random.rand(5,2)
589+
years = pd.date_range('1/1/2000',
590+
periods=2, freq=pd.DateOffset(years=1)).year
591+
# Does not work
592+
plt.figure()
593+
plt.boxplot(data, positions=years)
594+
595+
586596
def _test_rrulewrapper(attach_tz, get_tz):
587597
SYD = get_tz('Australia/Sydney')
588598

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy