From be2ae525942608088aab90220ea73a7ecc5fdc16 Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Thu, 26 Jun 2008 20:13:40 +0000 Subject: Fix to work also with integer 'socket_id' argument (bug #539365). 2008-06-26 Paul Pogonyshev * 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 --- tests/Makefile.am | 1 + tests/test_plug.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/test_plug.py (limited to 'tests') 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() -- cgit v1.2.1