Skip to content

Commit

Permalink
Use exec instead of eval in raise test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed May 24, 2024
1 parent fc62cdc commit cdcce2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/pycall/eval_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
end

it 'raises an exception occurred in Python side' do
expect { PyCall.eval('raise Exception("abcdef")') }.to raise_error(PyCall::PyError, /abcdef/)
expect { PyCall.exec('raise Exception("abcdef")') }.to raise_error(PyCall::PyError, /abcdef/)
end
end

Expand Down

0 comments on commit cdcce2f

Please sign in to comment.