summaryrefslogtreecommitdiff
path: root/tests/testhelpermodule.c
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2013-07-06 09:48:35 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2013-07-06 09:56:12 -0700
commit097c116d43a21bebf8e4bccde9cacc551db1e1e5 (patch)
treede0c5cb4845146987e29ecd051ae101d5ee684f0 /tests/testhelpermodule.c
parent0f6c571755e65b5e77d3d84e4516ef90d8ce0162 (diff)
downloadpygobject-097c116d43a21bebf8e4bccde9cacc551db1e1e5.tar.gz
testhelper: Fix import requirement for GObject
Replace the importing of gi._gobject._gobject with gi.repository.GObject in tests/testhelpermodule.c The testhelper module was only importing the static bindings (gi._gobject._gobject) and not the overrides (gi.repository.GObject). This was causing some tests to fail when test_thread was the first test to run in the suite due to it registering new types based on PyGObject_Type. https://bugzilla.gnome.org/show_bug.cgi?id=703647
Diffstat (limited to 'tests/testhelpermodule.c')
-rw-r--r--tests/testhelpermodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testhelpermodule.c b/tests/testhelpermodule.c
index 516cb97b..9b198c36 100644
--- a/tests/testhelpermodule.c
+++ b/tests/testhelpermodule.c
@@ -615,7 +615,7 @@ PYGLIB_MODULE_START(testhelper, "testhelper")
d = PyModule_GetDict(module);
- if ((m = PyImport_ImportModule("gi._gobject._gobject")) == NULL) {
+ if ((m = PyImport_ImportModule("gi.repository.GObject")) == NULL) {
PyErr_SetString(PyExc_ImportError,
"could not import gobject");
return PYGLIB_MODULE_ERROR_RETURN;