From 72f0e65526a4ca888e6a51d4a6ec30dce29c6dd4 Mon Sep 17 00:00:00 2001 From: lassepe Date: Mon, 18 Mar 2024 14:45:11 +0100 Subject: [PATCH] Add regression test --- test/Core.jl | 1 + 1 file changed, 1 insertion(+) 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