Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf5d2e9

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 72deb44 commit bf5d2e9

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.
-9.21 KB
Binary file not shown.
-5.24 KB
Binary file not shown.
-3.16 KB
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
@@ -217,11 +217,6 @@ def test_useafm():
217217
ax.text(.5, .5, "qk")
218218

219219

220-
@image_comparison(["type3.eps"])
221-
def test_type3_font():
222-
plt.figtext(.5, .5, "I/J")
223-
224-
225220
@image_comparison(["coloredhatcheszerolw.eps"])
226221
def test_colored_hatch_zero_linewidth():
227222
ax = plt.gca()

lib/matplotlib/tests/test_text.py

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

842842

843-
@image_comparison(['text_pdf_kerning.pdf'], style='mpl20')
844-
def test_pdf_kerning():
845-
plt.figure()
846-
plt.figtext(0.1, 0.5, "ATATATATATATATATATA", size=30)
847-
848-
849843
# See gh-26152 for more information on this xfail
850844
@pytest.mark.xfail(pyparsing_version.release == (3, 1, 0),
851845
reason="Error messages are incorrect with pyparsing 3.1.0")
@@ -876,21 +870,6 @@ def test_parse_math_rcparams():
876870
fig.canvas.draw()
877871

878872

879-
@image_comparison(['text_pdf_font42_kerning.pdf'], style='mpl20')
880-
def test_pdf_font42_kerning():
881-
plt.rcParams['pdf.fonttype'] = 42
882-
plt.figure()
883-
plt.figtext(0.1, 0.5, "ATAVATAVATAVATAVATA", size=30)
884-
885-
886-
@image_comparison(['text_pdf_chars_beyond_bmp.pdf'], style='mpl20')
887-
def test_pdf_chars_beyond_bmp():
888-
plt.rcParams['pdf.fonttype'] = 42
889-
plt.rcParams['mathtext.fontset'] = 'stixsans'
890-
plt.figure()
891-
plt.figtext(0.1, 0.5, "Mass $m$ \U00010308", size=30)
892-
893-
894873
@needs_usetex
895874
def test_metrics_cache():
896875
mpl.text._get_text_metrics_with_cache_impl.cache_clear()

0 commit comments

Comments
 (0)