mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
eventloop passed
This commit is contained in:
parent
c2336af3dc
commit
646f75a875
@ -222,11 +222,9 @@ Arg* PikaStdData_dict_items___next__(PikaObj* self) {
|
||||
if (NULL == key) {
|
||||
return arg_newNone();
|
||||
}
|
||||
PikaObj* tuple = newNormalObj(New_PikaStdData_Tuple);
|
||||
PikaStdData_Tuple___init__(tuple);
|
||||
PikaList* list = obj_getPtr(tuple, "list");
|
||||
pikaList_append(list, arg_copy(key));
|
||||
pikaList_append(list, arg_copy(val));
|
||||
PikaObj* tuple = New_pikaTuple();
|
||||
pikaList_append(tuple, arg_copy(key));
|
||||
pikaList_append(tuple, arg_copy(val));
|
||||
args_setInt(self->list, "__iter_i", __iter_i + 1);
|
||||
return arg_newObj(tuple);
|
||||
}
|
||||
|
3
port/linux/.vscode/launch.json
vendored
3
port/linux/.vscode/launch.json
vendored
@ -11,8 +11,7 @@
|
||||
"program": "${workspaceFolder}/build/test/pikascript_test",
|
||||
// "program": "${workspaceFolder}/build/boot/demo06-pikamain/pikascript_demo06-pikamain",
|
||||
"args": [
|
||||
// "--gtest_filter=json.loads"
|
||||
"--gtest_filter=re.findall"
|
||||
"--gtest_filter=eventloop.test1"
|
||||
],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${workspaceFolder}",
|
||||
|
@ -222,11 +222,9 @@ Arg* PikaStdData_dict_items___next__(PikaObj* self) {
|
||||
if (NULL == key) {
|
||||
return arg_newNone();
|
||||
}
|
||||
PikaObj* tuple = newNormalObj(New_PikaStdData_Tuple);
|
||||
PikaStdData_Tuple___init__(tuple);
|
||||
PikaList* list = obj_getPtr(tuple, "list");
|
||||
pikaList_append(list, arg_copy(key));
|
||||
pikaList_append(list, arg_copy(val));
|
||||
PikaObj* tuple = New_pikaTuple();
|
||||
pikaList_append(tuple, arg_copy(key));
|
||||
pikaList_append(tuple, arg_copy(val));
|
||||
args_setInt(self->list, "__iter_i", __iter_i + 1);
|
||||
return arg_newObj(tuple);
|
||||
}
|
||||
|
@ -1,14 +1,20 @@
|
||||
#include "test_common.h"
|
||||
TEST_START
|
||||
|
||||
// #define _SKIP_EVENTLOOP_TEST
|
||||
|
||||
#if !PIKA_NANO_ENABLE
|
||||
TEST_RUN_SINGLE_FILE(thread, test2, "test/python/_thread/test2.py")
|
||||
|
||||
#ifndef _SKIP_EVENTLOOP_TEST
|
||||
TEST_RUN_SINGLE_FILE(eventloop, test1, "test/python/eventloop/test1.py")
|
||||
TEST_RUN_SINGLE_FILE(eventloop, test2, "test/python/eventloop/test2.py")
|
||||
TEST_RUN_SINGLE_FILE(eventloop, test3, "test/python/eventloop/test3.py")
|
||||
TEST_RUN_SINGLE_FILE(eventloop, delay1, "test/python/eventloop/delay1.py")
|
||||
TEST_RUN_SINGLE_FILE(eventloop, once1, "test/python/eventloop/once1.py")
|
||||
TEST_RUN_SINGLE_FILE(eventloop, once2, "test/python/eventloop/once2.py")
|
||||
#endif
|
||||
|
||||
TEST_RUN_SINGLE_FILE(fsm, test1, "test/python/fsm/test1.py")
|
||||
|
||||
TEST_RUN_SINGLE_FILE_PASS(builtin,
|
||||
|
@ -2,4 +2,4 @@
|
||||
#define PIKA_VERSION_MINOR 12
|
||||
#define PIKA_VERSION_MICRO 4
|
||||
|
||||
#define PIKA_EDIT_TIME "2023/08/04 17:15:04"
|
||||
#define PIKA_EDIT_TIME "2023/08/04 17:23:14"
|
||||
|
Loading…
x
Reference in New Issue
Block a user