Skip to content

Commit 9d23373

Browse files
committed
TST: Remove redundant font tests
- `test_backend_ps::test_type3_font` is covered by `test_backend_ps::test_multi_font_type3` - `test_text::test_pdf_chars_beyond_bmp` is covered by `test_backend_pdf::test_multi_font_type3` and `test_backend_pdf::test_multi_font_type42` - `test_text::test_pdf_kerning` is covered by `test_backend_pdf::test_kerning` - `test_text::test_pdf_type42_kerning` is covered by `test_backend_pdf::test_kerning`
1 parent 948fbde commit 9d23373

File tree

6 files changed

+0
-138
lines changed

6 files changed

+0
-138
lines changed

lib/matplotlib/tests/baseline_images/test_backend_ps/type3.eps

Lines changed: 0 additions & 112 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.

lib/matplotlib/tests/test_backend_ps.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@ def test_useafm():
219219
ax.text(.5, .5, "qk")
220220

221221

222-
@image_comparison(["type3.eps"])
223-
def test_type3_font():
224-
plt.figtext(.5, .5, "I/J")
225-
226-
227222
@image_comparison(["coloredhatcheszerolw.eps"])
228223
def test_colored_hatch_zero_linewidth():
229224
ax = plt.gca()

lib/matplotlib/tests/test_text.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -845,12 +845,6 @@ def test_invalid_color():
845845
plt.figtext(.5, .5, "foo", c="foobar")
846846

847847

848-
@image_comparison(['text_pdf_kerning.pdf'], style='mpl20')
849-
def test_pdf_kerning():
850-
plt.figure()
851-
plt.figtext(0.1, 0.5, "ATATATATATATATATATA", size=30)
852-
853-
854848
# See gh-26152 for more information on this xfail
855849
@pytest.mark.xfail(pyparsing_version.release == (3, 1, 0),
856850
reason="Error messages are incorrect with pyparsing 3.1.0")
@@ -881,21 +875,6 @@ def test_parse_math_rcparams():
881875
fig.canvas.draw()
882876

883877

884-
@image_comparison(['text_pdf_font42_kerning.pdf'], style='mpl20')
885-
def test_pdf_font42_kerning():
886-
plt.rcParams['pdf.fonttype'] = 42
887-
plt.figure()
888-
plt.figtext(0.1, 0.5, "ATAVATAVATAVATAVATA", size=30)
889-
890-
891-
@image_comparison(['text_pdf_chars_beyond_bmp.pdf'], style='mpl20')
892-
def test_pdf_chars_beyond_bmp():
893-
plt.rcParams['pdf.fonttype'] = 42
894-
plt.rcParams['mathtext.fontset'] = 'stixsans'
895-
plt.figure()
896-
plt.figtext(0.1, 0.5, "Mass $m$ \U00010308", size=30)
897-
898-
899878
@needs_usetex
900879
def test_metrics_cache():
901880
# dig into the signature to get the mutable default used as a cache

0 commit comments

Comments
 (0)