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 8e69a40 commit 764ac73Copy full SHA for 764ac73
tests/test_endtoend.py
@@ -473,8 +473,9 @@ def test_interpreter_with_fil():
473
)
474
475
476
-def test_jupyter(tmpdir):
+def test_jupyter(tmp_path):
477
"""Jupyter magic can run Fil."""
478
+ tmpdir = tmp_path
479
shutil.copyfile(TEST_SCRIPTS / "jupyter.ipynb", tmpdir / "jupyter.ipynb")
480
check_call(
481
[
@@ -494,8 +495,8 @@ def test_jupyter(tmpdir):
494
495
html = f.read()
496
assert "<iframe" in html
497
[svg_path] = re.findall(r'src="([^"]*\.svg)"', html)
- assert svg_path.endswith("peak-memory.svg")
498
- svg_path = Path(tmpdir / svg_path)
+
499
+ svg_path = tmpdir / Path(svg_path)
500
assert svg_path.exists()
501
with open(svg_path) as f:
502
# Make sure the source code is in the SVG:
0 commit comments