Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12b3b7f

Browse files
committed
TST: add smoketest
1 parent 058af73 commit 12b3b7f

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)