Skip to content

Commit 7b177a7

Browse files
committed
Add regression test
1 parent 25c98cf commit 7b177a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)