Skip to content

Commit 0081ce1

Browse files
committed
tests: fix test_entries
Signed-off-by: Filipe Laíns <[email protected]>
1 parent c03c6c2 commit 0081ce1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_entrypoints.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import os
21
import re
3-
import shutil
42
import subprocess
53
import sys
64

@@ -13,8 +11,7 @@
1311
@pytest.mark.parametrize('name', ['pkgconf', 'pkg-config'])
1412
def test_entries(env, name):
1513
# TODO: Check PKG_CONFIG_PATH is correctly set
16-
path = shutil.which(name, path=env.scripts)
17-
help_text = subprocess.check_output([os.fspath(path), '--help'])
14+
help_text = env.run_script('pkgconf', '--help')
1815
assert help_text.decode().startswith('usage: pkgconf')
1916

2017

0 commit comments

Comments
 (0)