File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 16
16
TestEnv. activate (" ChainRulesCore" ) do
17
17
@eval using FiniteDifferences
18
18
end
19
- @test isdefined ( @__MODULE__ , :FiniteDifferences )
19
+ @test Base . invokelatest (isdefined, @__MODULE__ , :FiniteDifferences )
20
20
21
21
# We use endswith here because on MacOS GitHub runners for some reasons the paths are slightly different
22
22
# We also skip on Julia 1.2 and 1.3 on Windows because it is using 8 character shortened paths in one case
44
44
TestEnv. activate (" MCMCDiagnosticTools" ; kw... ) do
45
45
@eval using FFTW
46
46
end
47
- @test isdefined ( @__MODULE__ , :FFTW )
47
+ @test Base . invokelatest (isdefined, @__MODULE__ , :FFTW )
48
48
49
49
@test endswith (Base. active_project (), orig_project)
50
50
elseif VERSION >= v " 1.2-"
56
56
TestEnv. activate (" ConstraintSolver" ) do
57
57
@eval using Combinatorics
58
58
end
59
- @test isdefined ( @__MODULE__ , :Combinatorics )
59
+ @test Base . invokelatest (isdefined, @__MODULE__ , :Combinatorics )
60
60
61
61
# We use endswith here because on MacOS GitHub runners for some reasons the paths are slightly different
62
62
# We also skip on Windows because it is using 8 character shortened paths in one case
Original file line number Diff line number Diff line change 14
14
@test orig_load_path == Base. LOAD_PATH
15
15
16
16
@eval using StaticArrays # From ChainRulesCore [extras] Project.toml
17
- @test isdefined ( @__MODULE__ , :StaticArrays )
17
+ @test Base . invokelatest (isdefined, @__MODULE__ , :StaticArrays )
18
18
19
19
@eval using Compat # from ChainRulesCore Project.toml
20
- @test isdefined ( @__MODULE__ , :StaticArrays )
20
+ @test Base . invokelatest (isdefined, @__MODULE__ , :Compat )
21
21
finally
22
22
Pkg. activate (orig_project_toml_path)
23
23
# No longer is enviroment active
49
49
@test orig_load_path == Base. LOAD_PATH
50
50
51
51
@eval using CSV
52
- @test isdefined ( @__MODULE__ , :CSV )
52
+ @test Base . invokelatest (isdefined, @__MODULE__ , :CSV )
53
53
54
54
finally
55
55
Pkg. activate (orig_project_toml_path)
73
73
@test orig_load_path == Base. LOAD_PATH
74
74
75
75
@eval using JSON
76
- @test isdefined ( @__MODULE__ , :JSON )
76
+ @test Base . invokelatest (isdefined, @__MODULE__ , :JSON )
77
77
78
78
finally
79
79
Pkg. activate (orig_project_toml_path)
You can’t perform that action at this time.
0 commit comments