Skip to content

Commit

Permalink
Add missing exception to pytest.warns call
Browse files Browse the repository at this point in the history
  • Loading branch information
jsspencer authored and has2k1 committed May 9, 2023
1 parent a1dcd85 commit 925ce1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_stat_calculate_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_stat_bin():
# About the default bins
gg = ggplot(aes(x="x"), df) + stat_bin()

with pytest.warns() as record:
with pytest.warns(PlotnineWarning) as record:
gg.draw_test()

res = ("bins" in str(item.message).lower() for item in record)
Expand Down

0 comments on commit 925ce1e

Please sign in to comment.