diff --git a/test/Core.jl b/test/Core.jl index 9e06125c..7e1a8f7a 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 "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