Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
lassepe committed Mar 18, 2024
1 parent 25c98cf commit 72f0e65
Showing 1 changed file with 1 addition and 0 deletions.
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 "ValueError" 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 72f0e65

Please sign in to comment.