Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonspeed committed Nov 3, 2024
1 parent 8e69a40 commit 764ac73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_endtoend.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,9 @@ def test_interpreter_with_fil():
)


def test_jupyter(tmpdir):
def test_jupyter(tmp_path):
"""Jupyter magic can run Fil."""
tmpdir = tmp_path
shutil.copyfile(TEST_SCRIPTS / "jupyter.ipynb", tmpdir / "jupyter.ipynb")
check_call(
[
Expand All @@ -494,8 +495,8 @@ def test_jupyter(tmpdir):
html = f.read()
assert "<iframe" in html
[svg_path] = re.findall(r'src="([^"]*\.svg)"', html)
assert svg_path.endswith("peak-memory.svg")
svg_path = Path(tmpdir / svg_path)

svg_path = tmpdir / Path(svg_path)
assert svg_path.exists()
with open(svg_path) as f:
# Make sure the source code is in the SVG:
Expand Down

0 comments on commit 764ac73

Please sign in to comment.