Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec5a56 commit 0a6ee42Copy full SHA for 0a6ee42
1 file changed
lib/matplotlib/tests/test_backend_pdf.py
@@ -66,10 +66,9 @@ def test_multipage_keep_empty():
66
assert os.path.exists(filename)
67
os.remove(filename)
68
# test if an empty pdf is deleting itself afterwards with keep_empty=False
69
- with NamedTemporaryFile(delete=False) as tmp:
70
- with PdfPages(tmp, keep_empty=False) as pdf:
71
- filename = pdf._file.fh.name
72
- assert not os.path.exists(filename)
+ with PdfPages(filename, keep_empty=False) as pdf:
+ pass
+ assert not os.path.exists(filename)
73
### test pdf files with content, they should never be deleted
74
fig = plt.figure()
75
ax = fig.add_subplot(111)
0 commit comments