Skip to content

Commit

Permalink
Replace tempname() with mktempdir() in runtests (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
notZaki authored and ihnorton committed Jan 16, 2018
1 parent 2feb4f3 commit 8f87310
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,8 +1,7 @@
using DICOM

filename = tempname()*".zip"
dir = tempname()
mkpath(dir)
dir = mktempdir()
filename = joinpath(dir,"dicomTestData.zip")

download("http://www.dclunie.com/images/pixelspacingtestimages.zip", filename)
run(`unzip $filename -d $dir`)
Expand Down

0 comments on commit 8f87310

Please sign in to comment.