Skip to content

Commit

Permalink
Delete the temporary file, not the whole temporary directory. Fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
cstjean committed May 14, 2017
1 parent d745f50 commit 4ca9744
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ using PyCallJLD
using Base.Test
using PyCall, JLD

dir = tempdir()
tmp = joinpath(dir, "temp.jld")
tmp = joinpath(tempdir(), "temp.jld")

try
const deque = pyimport("collections")["deque"]
Expand All @@ -19,6 +18,5 @@ try
save(tmp, "x", obj)
@test load(tmp, "x") == obj
finally
# Disabled because it fails on Travis-Linux
#rm(dir, force=true, recursive=true)
rm(tmp, force=true)
end

2 comments on commit 4ca9744

@tkelman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you tag this?

@tkelman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Please sign in to comment.