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):
193
193
cmpfunc = unhandled_error_compare
194
194
)
195
195
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
+ )
197
208
198
209
test_PyLong_FromDouble = CPyExtFunction (
199
210
lambda args : int (args [0 ]),
@@ -226,8 +237,8 @@ def compile_module(self, name):
226
237
test_PyLong_Check = CPyExtFunction (
227
238
lambda args : isinstance (args [0 ], int ),
228
239
lambda : (
229
- (0 ,),
230
- (- 1 ,),
240
+ (0 ,),
241
+ (- 1 ,),
231
242
(0xffffffff ,),
232
243
(0xfffffffffffffffffffffff ,),
233
244
("hello" ,),
@@ -244,8 +255,8 @@ def compile_module(self, name):
244
255
test_PyLong_CheckExact = CPyExtFunction (
245
256
lambda args : type (args [0 ]) is int ,
246
257
lambda : (
247
- (0 ,),
248
- (- 1 ,),
258
+ (0 ,),
259
+ (- 1 ,),
249
260
(0xffffffff ,),
250
261
(0xfffffffffffffffffffffff ,),
251
262
("hello" ,),
You can’t perform that action at this time.
0 commit comments