File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import subprocess
2
2
import sys
3
3
import tempfile
4
+ from shutil import which
4
5
5
6
import pytest
6
- from distutils .spawn import find_executable
7
7
8
8
from pytest_cpp import error
9
9
from pytest_cpp .boost import BoostTestFacade
@@ -451,7 +451,7 @@ def test_argument_option_priority(testdir, exes):
451
451
452
452
453
453
@pytest .mark .skipif (
454
- not find_executable ("valgrind" ) or not find_executable ("catchsegv" ),
454
+ not which ("valgrind" ) or not which ("catchsegv" ),
455
455
reason = "Environment does not have required tools" ,
456
456
)
457
457
def test_google_cpp_harness_via_option (testdir , exes ):
@@ -504,7 +504,7 @@ def test_boost_two_arguments_via_option(testdir, exes):
504
504
505
505
506
506
@pytest .mark .skipif (
507
- not find_executable ("valgrind" ) or not find_executable ("catchsegv" ),
507
+ not which ("valgrind" ) or not which ("catchsegv" ),
508
508
reason = "Environment does not have required tools" ,
509
509
)
510
510
def test_boost_cpp_harness_via_option (testdir , exes ):
You can’t perform that action at this time.
0 commit comments