Commit 097c116d authored by Simon Feltman's avatar Simon Feltman
Browse files

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
parent 0f6c5717
......@@ -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) {
"could not import gobject");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment