Skip to content

Commit 284f6c6

Browse files
authored
Fix depwarns in tests (#190)
1 parent 6420bfd commit 284f6c6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ julia = "1.3"
2020
[extras]
2121
ColorVectorSpace = "c3611d14-8923-5661-9e6a-0046d554d3a4"
2222
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
23+
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
2324
ImageMetadata = "bc367c6b-8a6b-528e-b4bd-a4b897500b49"
2425
ImageShow = "4e3cecfd-b093-5904-9786-8bbb286a6a31"
2526
ImageTransformations = "02fcd773-0e25-5acc-982a-7f6622650795"
@@ -31,4 +32,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3132
ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea"
3233

3334
[targets]
34-
test = ["Colors", "OffsetArrays", "Pkg", "ColorVectorSpace", "Test", "Random", "IndirectArrays", "ZipFile", "ImageTransformations", "ImageShow", "ImageMetadata"]
35+
test = ["ColorVectorSpace", "Colors", "Downloads", "OffsetArrays", "Pkg", "Test", "Random", "IndirectArrays", "ZipFile", "ImageTransformations", "ImageShow", "ImageMetadata"]

test/constructed_images.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ mutable struct TestType end
133133
@test D[1] == c[1]
134134

135135
# Images#396
136-
c = colorview(RGBA, normedview(permuteddimsview(reshape(0x00:0x11:0xff, 2, 2, 4), (3,1,2))))
136+
c = colorview(RGBA, normedview(PermutedDimsArray(reshape(0x00:0x11:0xff, 2, 2, 4), (3,1,2))))
137137
ImageMagick.save(fn, c)
138138
D = ImageMagick.load(fn)
139139
@test D == c

test/readremote.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
using ImageMagick
22
using FileIO, ImageCore, ZipFile
33
using Test
4+
if Base.VERSION >= v"1.6.0-DEV.1016"
5+
import Downloads
6+
download = Downloads.download
7+
end
48

59
workdir = joinpath(tempdir(), "Images")
610
writedir = joinpath(workdir, "write")

0 commit comments

Comments
 (0)