Skip to content

Commit 053f535

Browse files
committed
Test with more font sizes
1 parent 2edb0c3 commit 053f535

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/tests/test_usetex.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ def test_mathdefault():
6161
fig.canvas.draw()
6262

6363

64-
def test_minus_no_descent():
64+
@pytest.mark.parametrize("fontsize", [8, 10, 12])
65+
def test_minus_no_descent(fontsize):
6566
# Test special-casing of minus descent in DviFont._height_depth_of, by
6667
# checking that overdrawing a 1 and a -1 results in an overall height
6768
# equivalent to drawing either of them separately.
6869
mpl.style.use("mpl20")
70+
mpl.rcParams['font.size'] = fontsize
6971
heights = {}
7072
fig = plt.figure()
7173
for vals in [(1,), (-1,), (-1, 1)]:

0 commit comments

Comments
 (0)