diff --git a/test/book/test.jl b/test/book/test.jl index 912b995283d..316e740a703 100644 --- a/test/book/test.jl +++ b/test/book/test.jl @@ -124,7 +124,7 @@ isdefined(Main, :FakeTerminals) || include(joinpath(pkgdir(REPL),"test","FakeTer mockdule = Module(sym) # make it accessible from Main @eval Main global $sym::Module - setproperty!(Main, sym, mockdule) + invokelatest(setproperty!, Main, sym, mockdule) Core.eval(mockdule, :(eval(x) = Core.eval($(mockdule), x))) Core.eval(mockdule, :(include(x) = Base.include($(mockdule), abspath(x))))