Skip to content

Commit da77644

Browse files
fixup! fixup! fixup! fixup! fixup! Replace relpath with cheaper function
1 parent e14ab4c commit da77644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/internals.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ end
395395
@test nestedrelpath(path, "test/dir/other") == "test/dir/foo_test.jl"
396396
@test nestedrelpath(path, "test/dir/other/bar_test.jl") == "test/dir/foo_test.jl"
397397

398-
if isdefined(Base, Symbol("@allocations")) # added in Julia v1.9
398+
@static if isdefined(Base, Symbol("@allocations")) # added in Julia v1.9
399399
@test 2 >= @allocations(nestedrelpath(path, "test"))
400400
@test 2 >= @allocations(nestedrelpath(path, "test/dir"))
401401
@test 1 >= @allocations(nestedrelpath(path, "test/dir/foo_test.jl"))

0 commit comments

Comments
 (0)