We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03c6c2 commit 0081ce1Copy full SHA for 0081ce1
tests/test_entrypoints.py
@@ -1,6 +1,4 @@
1
-import os
2
import re
3
-import shutil
4
import subprocess
5
import sys
6
@@ -13,8 +11,7 @@
13
11
@pytest.mark.parametrize('name', ['pkgconf', 'pkg-config'])
14
12
def test_entries(env, name):
15
# 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'])
+ help_text = env.run_script('pkgconf', '--help')
18
assert help_text.decode().startswith('usage: pkgconf')
19
20
0 commit comments