Skip to content

Commit

Permalink
Fix depwarn in test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Nov 1, 2015
1 parent 44ac339 commit 12cc548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Expand Up @@ -69,11 +69,11 @@ try
write(raw_file, zeros(UInt8, 10))
close(raw_file)

try
@compat try
gzopen(readall, test_compressed)
throw(ErrorException("Expecting ArgumentError or similar"))
catch ex
@test typeof(ex) <: Union(ArgumentError, ZError, GZError) ||
@test typeof(ex) <: Union{ArgumentError,ZError,GZError} ||
contains(ex.msg, "too many arguments")
end

Expand Down

0 comments on commit 12cc548

Please sign in to comment.