Skip to content

Commit

Permalink
Hot fix for #479 (#480)
Browse files Browse the repository at this point in the history
* Hot fix for #479

* Add regression test
  • Loading branch information
lassepe committed Mar 18, 2024
1 parent d001fe6 commit 8fc0421
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions test/Core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fc0421

Please sign in to comment.