diff --git a/test/doctests/fix/tests.jl b/test/doctests/fix/tests.jl index ee1efad523..254565108a 100644 --- a/test/doctests/fix/tests.jl +++ b/test/doctests/fix/tests.jl @@ -4,11 +4,8 @@ using Documenter, Test println("="^50) @info("Testing `doctest = :fix`") -#mktempdir(@__DIR__) do dir -let dir = joinpath(@__DIR__, "foo") - mkdir(dir) - #srcdir = mktempdir(dir) - srcdir = joinpath(dir, "src"); mkdir(srcdir) +mktempdir(@__DIR__) do dir + srcdir = mktempdir(dir) builddir = mktempdir(dir) cp(joinpath(@__DIR__, "broken.md"), joinpath(srcdir, "index.md")) cp(joinpath(@__DIR__, "broken.jl"), joinpath(srcdir, "src.jl")) @@ -16,7 +13,6 @@ let dir = joinpath(@__DIR__, "foo") @eval using .Foo # fix up makedocs(sitename="-", modules = [Foo], source = srcdir, build = builddir, doctest = :fix) - include(joinpath(srcdir, "src.jl")) # test that strict = true works makedocs(sitename="-", modules = [Foo], source = srcdir, build = builddir, strict = true) # also test that we obtain the expected output