Skip to content

Commit 3cf0e13

Browse files
committed
[GR-23302] [GR-26524] get test_importlib to pass
PullRequest: graalpython/1292
2 parents 79718b6 + 5f8e362 commit 3cf0e13

File tree

26 files changed

+1171
-127
lines changed

26 files changed

+1171
-127
lines changed

graalpython/com.oracle.graal.python.cext/modules/_cpython_struct.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
class Struct "PyStructObject *" "&PyStructType"
2020
[clinic start generated code]*/
2121
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=9b032058a83ed7c3]*/
22+
/* name of this module, minus the leading underscore */
23+
#if !defined(STRUCT_MODULE)
24+
#define STRUCT_MODULE "cpython_struct"
25+
#endif
26+
2227

2328
static PyTypeObject PyStructType;
2429

@@ -2320,7 +2325,7 @@ The variable struct.error is an exception raised on errors.\n");
23202325

23212326
static struct PyModuleDef _structmodule = {
23222327
PyModuleDef_HEAD_INIT,
2323-
"_struct",
2328+
"_" STRUCT_MODULE,
23242329
module_doc,
23252330
-1,
23262331
module_functions,

0 commit comments

Comments
 (0)