Skip to content

Commit 5d93a2c

Browse files
committed
update PyList_AsTuple test
1 parent 75f9a4d commit 5d93a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/python_cext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def PyList_Append(listObj, newitem):
267267
@may_raise
268268
def PyList_AsTuple(listObj):
269269
if not isinstance(listObj, list):
270-
_PyErr_BadInternalCall(None, None, listObj)
270+
raise SystemError("expected list type")
271271
return tuple(listObj)
272272

273273

0 commit comments

Comments
 (0)