summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Pogonyshev <pogonyshev@gmx.net>2008-06-26 20:13:40 +0000
committerPaul Pogonyshev <paulp@src.gnome.org>2008-06-26 20:13:40 +0000
commitbe2ae525942608088aab90220ea73a7ecc5fdc16 (patch)
treeee1f3fc446b4f305cf79cbd9848ed6d6b408982f /tests
parent7472fe849e7161a7c209b9e9fc2303f59e49293e (diff)
downloadpygtk-be2ae525942608088aab90220ea73a7ecc5fdc16.tar.gz
Fix to work also with integer 'socket_id' argument (bug #539365).
2008-06-26 Paul Pogonyshev <pogonyshev@gmx.net> * gtk/gtk.override (_wrap_gtk_plug_new): Fix to work also with integer 'socket_id' argument (bug #539365). * tests/Makefile.am: * tests/test_plug.py: New test file. svn path=/trunk/; revision=3001
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/test_plug.py13
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 444a4275..e5756f4c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -13,6 +13,7 @@ tests = \
test_glade.py \
test_liststore.py
test_pango.py \
+ test_plug.py \
test_radiobutton.py \
test_style.py \
test_textview.py \
diff --git a/tests/test_plug.py b/tests/test_plug.py
new file mode 100644
index 00000000..2d54acf1
--- /dev/null
+++ b/tests/test_plug.py
@@ -0,0 +1,13 @@
+import unittest
+
+from common import gtk
+
+class TextPlug(unittest.TestCase):
+
+ # Bug #539365. Just check that it doesn't raise anything.
+ def test_constructor_socket_id(self):
+ self.assert_(isinstance(gtk.Plug(0), gtk.Plug))
+ self.assert_(isinstance(gtk.Plug(0L), gtk.Plug))
+
+if __name__ == '__main__':
+ unittest.main()