summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-08-05 15:54:29 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-08-05 15:54:29 +0000
commite461fe82fbb0b955c38bf75485a5b8afc7b7338b (patch)
tree27e87672c228e50624a0f6669805ede3635bc007 /tests
parent73fb8e40389b59cbd62699ff4d35b97f5b5b2600 (diff)
downloadpygtk-e461fe82fbb0b955c38bf75485a5b8afc7b7338b.tar.gz
Make it possible to reload the gtk+ module, (#349026, Alexander Larsson)
* gtk/__init__.py (ver): Make it possible to reload the gtk+ module, (#349026, Alexander Larsson) * tests/test_api.py (APITest.testGlade): Add a test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index beb22a46..77984a9e 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -1,3 +1,5 @@
+import os
+import sys
import unittest
from common import gobject, gtk, glade
@@ -26,3 +28,9 @@ class APITest(unittest.TestCase):
def testGlade(self):
self.failUnless(hasattr(glade, 'XML'))
self.failUnless(issubclass(glade.XML, gobject.GObject))
+
+ def testReload(self):
+ # test for #349026
+ del sys.modules['gtk']
+ import gtk
+ reload(gtk)