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 6e45c6a commit 0a39fcaCopy full SHA for 0a39fca
.gitignore
@@ -35,3 +35,4 @@ MANIFEST
35
.pytest_cache/
36
.DS_Store
37
*.log
38
+test_graph*.pdf
tests/test_examples.py
@@ -14,4 +14,14 @@ def test_example(example_path):
14
15
# Call main() if it exists
16
if hasattr(module, "main"):
17
- module.main()
+ module.main()
18
+
19
+def teardown_module(module):
20
21
+ # Look for pdf files in the current working directory.
22
+ cwd = pathlib.Path.cwd()
23
+ for pdf_file in cwd.glob("test_graph*.pdf"):
24
+ try:
25
+ pdf_file.unlink()
26
+ except Exception as e:
27
+ print(f"Failed to remove {pdf_file}: {e}")
0 commit comments