Skip to content

Commit da9ea78

Browse files
committed
Test empty documentclass
1 parent 38a04a7 commit da9ea78

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,11 @@ def test_preamble_packages(format, tmp_path):
456456
path = os.path.join(tmp_path, f'preamble_packages_{format}.pdf')
457457
with PdfPages(path) as pdf:
458458
pdf.savefig(plt.figure())
459+
460+
461+
# test empty documentclass
462+
@needs_pgf_xelatex
463+
@pytest.mark.backend('pgf')
464+
def test_documentclass():
465+
mpl.rcParams['pgf.documentclass'] = ''
466+
plt.figure().savefig(BytesIO())

0 commit comments

Comments
 (0)