Skip to content

Commit da2c4eb

Browse files
committed
Use exec instead of eval in raise test
1 parent fc62cdc commit da2c4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/pycall/eval_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
end
2121

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

0 commit comments

Comments
 (0)