File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import subprocess
22import sys
33import tempfile
4+ from shutil import which
45
56import pytest
6- from distutils .spawn import find_executable
77
88from pytest_cpp import error
99from pytest_cpp .boost import BoostTestFacade
@@ -451,7 +451,7 @@ def test_argument_option_priority(testdir, exes):
451451
452452
453453@pytest .mark .skipif (
454- not find_executable ("valgrind" ) or not find_executable ("catchsegv" ),
454+ not which ("valgrind" ) or not which ("catchsegv" ),
455455 reason = "Environment does not have required tools" ,
456456)
457457def test_google_cpp_harness_via_option (testdir , exes ):
@@ -504,7 +504,7 @@ def test_boost_two_arguments_via_option(testdir, exes):
504504
505505
506506@pytest .mark .skipif (
507- not find_executable ("valgrind" ) or not find_executable ("catchsegv" ),
507+ not which ("valgrind" ) or not which ("catchsegv" ),
508508 reason = "Environment does not have required tools" ,
509509)
510510def test_boost_cpp_harness_via_option (testdir , exes ):
You can’t perform that action at this time.
0 commit comments