Skip to content

Commit 764ac73

Browse files
committed
Fix test
1 parent 8e69a40 commit 764ac73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_endtoend.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@ def test_interpreter_with_fil():
473473
)
474474

475475

476-
def test_jupyter(tmpdir):
476+
def test_jupyter(tmp_path):
477477
"""Jupyter magic can run Fil."""
478+
tmpdir = tmp_path
478479
shutil.copyfile(TEST_SCRIPTS / "jupyter.ipynb", tmpdir / "jupyter.ipynb")
479480
check_call(
480481
[
@@ -494,8 +495,8 @@ def test_jupyter(tmpdir):
494495
html = f.read()
495496
assert "<iframe" in html
496497
[svg_path] = re.findall(r'src="([^"]*\.svg)"', html)
497-
assert svg_path.endswith("peak-memory.svg")
498-
svg_path = Path(tmpdir / svg_path)
498+
499+
svg_path = tmpdir / Path(svg_path)
499500
assert svg_path.exists()
500501
with open(svg_path) as f:
501502
# Make sure the source code is in the SVG:

0 commit comments

Comments
 (0)