8000 TST: add smoketest · matplotlib/matplotlib@28bc931 · GitHub
[go: up one dir, main page]

Skip to content

Commit 28bc931

Browse files
committed
TST: add smoketest
1 parent e9532b0 commit 28bc931

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,15 @@ def test_bar_timedelta():
15241524
(10, 20))
15251525

15261526

1527+
def test_boxplot_dates_pandas(pd):
1528+
# smoke test for boxplot and dates in pandas
1529+
data = np.random.rand(5, 2)
1530+
years = pd.date_range('1/1/2000',
1531+
periods=2, freq=pd.DateOffset(years=1)).year
1532+
plt.figure()
1533+
plt.boxplot(data, positions=years)
1534+
1535+
15271536
def test_bar_pandas(pd):
15281537
# Smoke test for pandas
15291538

0 commit comments

Comments
 (0)
0