merge master

This commit is contained in:
lyon 2022-11-24 01:07:39 +08:00
parent 542f126c91
commit 75bdfeccf6

View File

@ -243,4 +243,19 @@ TEST(requests, std_request) {
EXPECT_EQ(pikaMemNow(), 0);
}
TEST(requests, rest_init) {
PikaObj* pikaMain = newRootObj("pikaMain", New_PikaMain);
extern unsigned char pikaModules_py_a[];
obj_linkLibrary(pikaMain, pikaModules_py_a);
obj_run(pikaMain,
"import requests\n"
"r = requests.Response()\n"
);
/* assert */
/* deinit */
obj_deinit(pikaMain);
EXPECT_EQ(pikaMemNow(), 0);
}
#endif