Skip to content

Commit 6a6ca40

Browse files
authored
Merge pull request #514 from djarecka/fix/file_tests
fixing two tests
2 parents 1f96fcf + 9cbb2dd commit 6a6ca40

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pydra/engine/tests/test_tasks_files.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ def test_broken_file(tmpdir):
134134
sub(nn)
135135

136136
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"):
140138
with Submitter(plugin="cf") as sub:
141139
sub(nn2)
142140

@@ -163,9 +161,7 @@ def test_broken_file_link(tmpdir):
163161

164162
# raises error before task is run
165163
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"):
169165
with Submitter(plugin="cf") as sub:
170166
sub(nn2)
171167

0 commit comments

Comments
 (0)