Skip to content

Commit

Permalink
Test empty documentclass
Browse files Browse the repository at this point in the history
  • Loading branch information
voidstarstar committed May 12, 2024
1 parent 38a04a7 commit da9ea78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/matplotlib/tests/test_backend_pgf.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,3 +456,11 @@ def test_preamble_packages(format, tmp_path):
path = os.path.join(tmp_path, f'preamble_packages_{format}.pdf')
with PdfPages(path) as pdf:
pdf.savefig(plt.figure())


# test empty documentclass
@needs_pgf_xelatex
@pytest.mark.backend('pgf')
def test_documentclass():
mpl.rcParams['pgf.documentclass'] = ''
plt.figure().savefig(BytesIO())

0 comments on commit da9ea78

Please sign in to comment.