Skip to content

Commit 9c71a15

Browse files
authored
Merge pull request #1390 from mhartmay/fix-hanging-tests
testlib: Fix hanging tests
2 parents 7be79d0 + 0a559ec commit 9c71a15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ def _have_cmd(args):
172172

173173

174174
def have_python2():
175-
return _have_cmd(['python2'])
175+
return _have_cmd(['python2', '--version'])
176176

177177

178178
def have_python3():
179-
return _have_cmd(['python3'])
179+
return _have_cmd(['python3', '--version'])
180180

181181

182182
def have_sudo_nopassword():

0 commit comments

Comments
 (0)