Skip to content

Commit

Permalink
fix tests on <=1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
marius311 committed Dec 18, 2023
1 parent bc7a1c7 commit ed59c04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/funcdef.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ed59c04

Please sign in to comment.