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 1815263

Browse filesBrowse files
authored
Merge pull request #12287 from meeseeksmachine/auto-backport-of-pr-12262-on-v3.0.x
Backport PR #12262 on branch v3.0.x (Simplify empty-rasterized pdf test.)
2 parents 0368813 + 11a98ac commit 1815263
Copy full SHA for 1815263

File tree

Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed

‎lib/matplotlib/tests/test_backend_pdf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_pdf.py
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,8 @@ def test_failing_latex(tmpdir):
234234
plt.savefig(path)
235235

236236

237-
def test_empty_rasterised():
237+
def test_empty_rasterized():
238238
# Check that emtpy figures that are rasterised save to pdf files fine
239-
with PdfPages(io.BytesIO()) as pdf:
240-
fig, ax = plt.subplots()
241-
ax.plot([], [], rasterized=True)
242-
fig.savefig(pdf, format="pdf")
239+
fig, ax = plt.subplots()
240+
ax.plot([], [], rasterized=True)
241+
fig.savefig(io.BytesIO(), format="pdf")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.