File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -909,8 +909,12 @@ def test_sysexec(self):
909
909
assert out .find (x .basename ) != - 1
910
910
911
911
def test_sysexec_failing (self ):
912
+ try :
913
+ from py ._process .cmdexec import ExecutionFailed # py library
914
+ except ImportError :
915
+ ExecutionFailed = RuntimeError # py vendored
912
916
x = local .sysfind ("false" )
913
- with pytest .raises (RuntimeError ):
917
+ with pytest .raises (ExecutionFailed ):
914
918
x .sysexec ("aksjdkasjd" )
915
919
916
920
def test_make_numbered_dir (self , tmpdir ):
@@ -1146,7 +1150,10 @@ def test_pypkgdir_unimportable(tmpdir):
1146
1150
1147
1151
1148
1152
def test_isimportable ():
1149
- from py .path import isimportable
1153
+ try :
1154
+ from py .path import isimportable # py vendored version
1155
+ except ImportError :
1156
+ from py ._path .local import isimportable # py library
1150
1157
1151
1158
assert not isimportable ("" )
1152
1159
assert isimportable ("x" )
You can’t perform that action at this time.
0 commit comments