Skip to content

Commit

Permalink
Test pull request #541, fix python 3.5 AppVeyor error
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Roux committed Aug 24, 2020
1 parent d22e1e4 commit c258212
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ipykernel/tests/test_kernelspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,13 @@ def test_install_display_name_overrides_profile():
dict(spam="spam", foo='bar')
])
def test_install_env(tmp_path, env):
# python 3.5 // tmp_path must be converted to str
with mock.patch('jupyter_client.kernelspec.SYSTEM_JUPYTER_PATH',
[tmp_path]):
[str(tmp_path)]):
install(env=env)

spec = tmp_path / 'kernels' / KERNEL_NAME / "kernel.json"
with open(spec) as f:
with spec.open() as f:
spec = json.load(f)

if env:
Expand Down

0 comments on commit c258212

Please sign in to comment.