Skip to content

Commit f2c9238

Browse files
authored
Update error_path_intentionally_fail.jl
1 parent 6fb39c5 commit f2c9238

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/error_path_intentionally_fail.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@ mktempdir() do tmpdir
2626
withenv(new_env...) do
2727
@info "with new PATH" Sys.which("srun")
2828

29-
if Base.VERSION >= v"1.2-"
30-
expected_outer_ex_T = TaskFailedException
31-
expected_inner_ex_INSTANCE = Base.IOError("write: broken pipe (EPIPE)", -32)
32-
else
33-
expected_outer_ex_T = Base.IOError
34-
expected_inner_ex_INSTANCE = Base.IOError("write: broken pipe (EPIPE)", -32)
35-
end
29+
expected_outer_ex_T = Base.IOError
30+
expected_inner_ex_INSTANCE = Base.IOError("write: broken pipe (EPIPE)", -32)
3631

3732
mgr = SlurmClusterManager.SlurmManager()
3833
test_result = @test_throws expected_outer_ex_T Distributed.addprocs(mgr)

0 commit comments

Comments
 (0)