Skip to content

Commit 8fc0421

Browse files
authored
Hot fix for #479 (#480)
* Hot fix for #479 * Add regression test
1 parent d001fe6 commit 8fc0421

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Core/Core.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using ..GC: GC
1414
using ..Utils: Utils
1515
using Base: @propagate_inbounds, @kwdef
1616
using Dates: Date, Time, DateTime, year, month, day, hour, minute, second, millisecond, microsecond, nanosecond
17-
using MacroTools: @capture
17+
using MacroTools: MacroTools, @capture
1818
using Markdown: Markdown
1919

2020
include("Py.jl")

test/Core.jl

+1
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ end
743743
@test pyeq(Bool, l["x"], 4)
744744
# check global code runs in global scope
745745
pyexec("global y; y=x+1", g, l)
746+
@test_throws PythonCall.PyException PythonCall.@pyexec (err = PythonCall.Core.pybuiltins.ValueError) => `raise err`
746747
@test pyeq(Bool, g["y"], 5)
747748
@test !pycontains(l, "y")
748749
# check pyeval converts types correctly

0 commit comments

Comments
 (0)