[pygi] don't import gobject directly in the tests
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygi] don't import gobject directly in the tests
- Date: Wed, 2 Jun 2010 18:15:05 +0000 (UTC)
commit c3f467e0ae99aa78c2fdb91b973a272d2fe970bd
Author: John (J5) Palmieri <johnp redhat com>
Date: Wed Jun 2 14:14:16 2010 -0400
don't import gobject directly in the tests
* use from gi.repository import GObject
tests/test_overrides.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tests/test_overrides.py b/tests/test_overrides.py
index f13ba94..bccb243 100644
--- a/tests/test_overrides.py
+++ b/tests/test_overrides.py
@@ -5,7 +5,6 @@ import pygtk
pygtk.require("2.0")
import unittest
-import gobject
import sys
sys.path.insert(0, "../")
@@ -72,8 +71,8 @@ class TestGtk(unittest.TestCase):
class SignalTest(GObject.GObject):
__gtype_name__ = "GIOverrideSignalTest"
__gsignals__ = {
- "test-signal": (gobject.SIGNAL_RUN_FIRST,
- gobject.TYPE_NONE,
+ "test-signal": (GObject.SIGNAL_RUN_FIRST,
+ GObject.TYPE_NONE,
[]),
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]