File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
graalpython/com.oracle.graal.python.test/src/tests/cpyext Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,18 @@ def compile_module(self, name):
193193 cmpfunc = unhandled_error_compare
194194 )
195195
196- test_PyLong_FromSize_t = test_PyLong_FromSsize_t
196+ test_PyLong_FromSize_t = CPyExtFunction (
197+ lambda args : int (args [0 ]),
198+ lambda : (
199+ (0 ,),
200+ (1 ,),
201+ (0xffffffff ,),
202+ ),
203+ resultspec = "O" ,
204+ argspec = 'n' ,
205+ arguments = ["size_t n" ],
206+ cmpfunc = unhandled_error_compare
207+ )
197208
198209 test_PyLong_FromDouble = CPyExtFunction (
199210 lambda args : int (args [0 ]),
@@ -226,8 +237,8 @@ def compile_module(self, name):
226237 test_PyLong_Check = CPyExtFunction (
227238 lambda args : isinstance (args [0 ], int ),
228239 lambda : (
229- (0 ,),
230- (- 1 ,),
240+ (0 ,),
241+ (- 1 ,),
231242 (0xffffffff ,),
232243 (0xfffffffffffffffffffffff ,),
233244 ("hello" ,),
@@ -244,8 +255,8 @@ def compile_module(self, name):
244255 test_PyLong_CheckExact = CPyExtFunction (
245256 lambda args : type (args [0 ]) is int ,
246257 lambda : (
247- (0 ,),
248- (- 1 ,),
258+ (0 ,),
259+ (- 1 ,),
249260 (0xffffffff ,),
250261 (0xfffffffffffffffffffffff ,),
251262 ("hello" ,),
You can’t perform that action at this time.
0 commit comments