File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -134,9 +134,7 @@ def test_broken_file(tmpdir):
134
134
sub (nn )
135
135
136
136
nn2 = file_add2_annot (name = "add2_annot" , file = file )
137
- with pytest .raises (
138
- FileNotFoundError , match = "file from the file input does not exist"
139
- ):
137
+ with pytest .raises (FileNotFoundError , match = "does not exist" ):
140
138
with Submitter (plugin = "cf" ) as sub :
141
139
sub (nn2 )
142
140
@@ -163,9 +161,7 @@ def test_broken_file_link(tmpdir):
163
161
164
162
# raises error before task is run
165
163
nn2 = file_add2_annot (name = "add2_annot" , file = file_link )
166
- with pytest .raises (
167
- FileNotFoundError , match = "file from the file input does not exist"
168
- ):
164
+ with pytest .raises (FileNotFoundError , match = "does not exist" ):
169
165
with Submitter (plugin = "cf" ) as sub :
170
166
sub (nn2 )
171
167
You can’t perform that action at this time.
0 commit comments