Skip to content

Commit

Permalink
support python3-only systems (#5874)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeggyCal authored and ahuang11 committed Sep 9, 2023
1 parent 57a0cf3 commit 2411cfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/tests/util/test_init.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from textwrap import dedent
from subprocess import check_output
from shutil import which


def test_no_blocklist_imports():
Expand All @@ -14,6 +15,6 @@ def test_no_blocklist_imports():
print(", ".join(mods), end="")
"""

output = check_output(['python', '-c', dedent(check)])
output = check_output([('python' if which('python') else 'python3'), '-c', dedent(check)])

assert output == b""

0 comments on commit 2411cfb

Please sign in to comment.