Skip to content

Commit

Permalink
WIP: trying to make Literate.jl testsets safeer
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Sep 12, 2023
1 parent a509179 commit 0c27752
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/literate/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ function create_tutorials(files)
@testset "$(filename[j][2][2])" begin include(joinpath(repo_src, filename[j][2][1], filename[j][2][2])) end
end
else # Single files
@testset "$title" begin include(joinpath(repo_src, filename)) end
mod = gensym(title)
@testset "$title" begin
@eval module $mod
include(joinpath(repo_src, filename))
end
end
end
end
end
Expand Down

0 comments on commit 0c27752

Please sign in to comment.