Skip to content

Commit

Permalink
fix tests on Julia master (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Feb 25, 2021
1 parent 30ac1b3 commit fe9a2b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Pidfile

using Test
thrown_type(x) = x

using Base.Filesystem: File
using Pidfile: iswindows,
Expand Down Expand Up @@ -182,8 +181,8 @@ end
end

@testset "open_exclusive: other errors" begin
@test_throws(thrown_type(Base.IOError("open: no such file or directory (ENOENT)", Base.UV_ENOENT)),
open_exclusive("nonexist/folder"))
error = @test_throws(Base.IOError, open_exclusive("nonexist/folder"))
@test error.value.code == Base.UV_ENOENT
end

@testset "mkpidlock" begin
Expand Down

0 comments on commit fe9a2b2

Please sign in to comment.