Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d3e4b41

Browse filesBrowse files
committed
Test empty documentclass
1 parent 9caeb80 commit d3e4b41
Copy full SHA for d3e4b41

File tree

1 file changed

+8
-0
lines changed
Filter options

1 file changed

+8
-0
lines changed

‎lib/matplotlib/tests/test_backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_pgf.py
+8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.