Skip to content

Commit 78f05b7

Browse files
committed
removed mktempdir(::Function)
...didn't realize that this is 0.4 only
1 parent c9df27f commit 78f05b7

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

test/query.jl

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -219,20 +219,17 @@ try
219219
@fact lenload0 + 1 --> length(FileIO.sym2loader)
220220
@fact length(FileIO.sym2loader[:MultiLib]) --> 2
221221
@fact length(FileIO.sym2saver[:MultiLib]) --> 1
222-
223-
mktempdir() do tmpdir
224-
fn = joinpath(tmpdir, "test.mlb")
225-
save(fn)
226-
x = load(fn)
227-
open(query(fn), "r") do io
228-
skipmagic(io)
229-
a = read(io, Int)
230-
@fact a --> 42 #make sure that LoadTest2 is used for saving, even though its at position 2
231-
end
232-
@fact isdefined(:LoadTest1) --> true # first module should load first but fail
233-
@fact x --> 42
222+
fn = string(tempname(), ".mlb")
223+
save(fn)
224+
x = load(fn)
225+
open(query(fn), "r") do io
226+
skipmagic(io)
227+
a = read(io, Int)
228+
@fact a --> 42 #make sure that LoadTest2 is used for saving, even though its at position 2
234229
end
235-
230+
@fact isdefined(:LoadTest1) --> true # first module should load first but fail
231+
@fact x --> 42
232+
rm(fn)
236233
end
237234
finally
238235
# Restore the registry

0 commit comments

Comments
 (0)