Skip to content

Commit 427629c

Browse files
committed
fix 0.6
1 parent 5bde79b commit 427629c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/registry.jl

-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ function detect_stlascii(io)
241241
len < 80 && return false
242242
header = read(io, 80) # skip header
243243
seek(io, pos)
244-
@show String(header[1:6])
245244
header[1:6] == b"solid " && !detect_stlbinary(io)
246245
finally
247246
seek(io, pos)

test/error_handling.jl

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
println("these tests will print warnings: ")
2+
3+
if VERSION > v"0.6.9"
4+
const fetch07 = fetch
5+
else
6+
const fetch07 = wait
7+
end
8+
29
@testset "Not installed" begin
310
eval(Base, :(is_interactive = true)) # for interactive error handling
411

@@ -9,11 +16,11 @@ println("these tests will print warnings: ")
916
rserr, wrerr = redirect_stderr()
1017
ref = @async save("test.not_installed", nothing)
1118
println(wr, "y")
12-
@test_throws CompositeException fetch(ref) #("unknown package NotInstalled")
19+
@test_throws CompositeException fetch07(ref) #("unknown package NotInstalled")
1320
ref = @async save("test.not_installed", nothing)
1421
println(wr, "invalid") #test invalid input
1522
println(wr, "n") # don't install
16-
fetch(ref)
23+
fetch07(ref)
1724
@test istaskdone(ref)
1825

1926
close(rs);close(wr);close(rserr);close(wrerr)

0 commit comments

Comments
 (0)