Skip to content

Commit

Permalink
MAINT: Fix error on nightly build
Browse files Browse the repository at this point in the history
Change warnign class to any warning to address changes in MPL
  • Loading branch information
bashtage committed Jul 2, 2020
1 parent 6eaec53 commit fa8739e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion statsmodels/regression/tests/test_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ def test_plot():
res.plot_recursive_coefficient(variables="x4")

fig = plt.Figure()
with pytest.warns(UserWarning, match="tight_layout"):
with pytest.warns(Warning):
# Just silence the warning
out = res.plot_recursive_coefficient(fig=fig)
assert out is fig
res.plot_recursive_coefficient(alpha=None, figsize=(30, 7))
Expand Down

0 comments on commit fa8739e

Please sign in to comment.