From ed59c04f37884b5ed35fed8269c40886eba43440 Mon Sep 17 00:00:00 2001 From: marius Date: Mon, 18 Dec 2023 00:37:51 -0800 Subject: [PATCH] fix tests on <=1.4 --- test/funcdef.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/funcdef.jl b/test/funcdef.jl index 576388e..186f211 100644 --- a/test/funcdef.jl +++ b/test/funcdef.jl @@ -106,9 +106,8 @@ n=0; @test (uarg(Float64)==Float64 && n==0) @test gen2() == 1 # works when called during precompilation of a package -Pkg.develop(path=joinpath(@__DIR__,"TestPackage")) +Pkg.develop(PackageSpec(path=joinpath(@__DIR__,"TestPackage"))) using TestPackage @test TestPackage.foo(2) == 2 -# @test read(`$(Base.julia_cmd()[1]) --startup-file=no --project=$(joinpath(@__DIR__,"TestPackage")) -e "using TestPackage; print(TestPackage.foo(2))"`,String) == "2" end \ No newline at end of file