Skip to content

Commit

Permalink
Use sys.executable for check_output (#5983)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Nov 16, 2023
1 parent a3b419a commit 44b0bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/tests/util/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from shutil import which
import sys
from subprocess import check_output
from textwrap import dedent

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

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

assert output == b""

0 comments on commit 44b0bff

Please sign in to comment.