8000 Add force draw to generate the warning · matplotlib/matplotlib@10c413a · GitHub
[go: up one dir, main page]

Skip to content

Commit 10c413a

Browse files
Add force draw to generate the warning
1 parent bd6a88e commit 10c413a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_scale.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def test_symlog_linthresh():
6666
ax.set_xscale('symlog')
6767
ax.set_yscale('symlog')
6868

69-
with pytest.warns(UserWarning):
70-
plt.show()
69+
with pytest.warns(UserWarning, match="All values .* of linthresh"):
70+
fig.canvas.draw()
7171

7272

7373
@image_comparison(['logit_scales.png'], remove_text=True)

0 commit comments

Comments
 (0)
0