diff --git a/src/Core/Core.jl b/src/Core/Core.jl index e2844200..7a0035e5 100644 --- a/src/Core/Core.jl +++ b/src/Core/Core.jl @@ -14,7 +14,7 @@ using ..GC: GC using ..Utils: Utils using Base: @propagate_inbounds, @kwdef using Dates: Date, Time, DateTime, year, month, day, hour, minute, second, millisecond, microsecond, nanosecond -using MacroTools: @capture +using MacroTools: MacroTools, @capture using Markdown: Markdown include("Py.jl") diff --git a/test/Core.jl b/test/Core.jl index 9e06125c..a27acf25 100644 --- a/test/Core.jl +++ b/test/Core.jl @@ -743,6 +743,7 @@ end @test pyeq(Bool, l["x"], 4) # check global code runs in global scope pyexec("global y; y=x+1", g, l) + @test_throws PythonCall.PyException PythonCall.@pyexec (err = PythonCall.Core.pybuiltins.ValueError) => `raise err` @test pyeq(Bool, g["y"], 5) @test !pycontains(l, "y") # check pyeval converts types correctly