diff --git a/test/runtests.jl b/test/runtests.jl index 0a46b08..58202ae 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -24,7 +24,11 @@ mktempdir() do dir contents = [nothing, "foo", "bar", Dict{Any,Any}("baz"=>"qux")] b = length(contents) - states = [Dict([(string(k, base=b, pad=6), contents[rem(div(k,b^p),b)+1]) for k=0:(b^3)^2-1]) for p=0:5] + @static if VERSION >= v"0.7.0" + states = [Dict([(string(k, base=b, pad=6), contents[rem(div(k,b^p),b)+1]) for k=0:(b^3)^2-1]) for p=0:5] + else + states = [Dict([(base(b, k, 6), contents[rem(div(k,b^p),b)+1]) for k=0:(b^3)^2-1]) for p=0:5] + end git_setup(states[1:3]...) try Git.transact() do