summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-09-06 03:53:04 (GMT)
committerLarry Hastings <larry@hastings.org>2015-09-06 03:53:04 (GMT)
commit055a9e0bc8eb28fd64158ade11019b712116aeae (patch)
tree00f75387fa11dfc0678884f5d2f15e24ad6b525c /Modules
parent699534210c935de3d5041c801bd97270fd31a522 (diff)
parent9d3c61c86a20678d604c96a68bbf4a966877f0b9 (diff)
downloadcpython-055a9e0bc8eb28fd64158ade11019b712116aeae.zip
cpython-055a9e0bc8eb28fd64158ade11019b712116aeae.tar.gz
cpython-055a9e0bc8eb28fd64158ade11019b712116aeae.tar.bz2
Merged in ncoghlan/cpython350 (pull request #17)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testmultiphase.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c
index 2919687..2005205 100644
--- a/Modules/_testmultiphase.c
+++ b/Modules/_testmultiphase.c
@@ -582,3 +582,13 @@ PyInit__testmultiphase_exec_unreported_exception(PyObject *spec)
{
return PyModuleDef_Init(&def_exec_unreported_exception);
}
+
+/*** Helper for imp test ***/
+
+static PyModuleDef imp_dummy_def = TEST_MODULE_DEF("imp_dummy", main_slots, testexport_methods);
+
+PyMODINIT_FUNC
+PyInit_imp_dummy(PyObject *spec)
+{
+ return PyModuleDef_Init(&imp_dummy_def);
+}