From a4160892dd28ab1d656cef4d4059f3b3f95caf4a Mon Sep 17 00:00:00 2001 From: Garrett Regier Date: Mon, 19 Jan 2015 14:53:53 -0800 Subject: Allows passing arguments to opaque Boxed types https://bugzilla.gnome.org/show_bug.cgi?id=743214 --- tests/test_glib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_glib.py') diff --git a/tests/test_glib.py b/tests/test_glib.py index f9e48536..17ac2def 100644 --- a/tests/test_glib.py +++ b/tests/test_glib.py @@ -226,9 +226,9 @@ https://my.org/q?x=1&y=2 self.assertGreaterEqual(minor, 0) self.assertGreaterEqual(micro, 0) - def test_timezone_constructor_error(self): - self.assertRaisesRegexp(TypeError, '.*constructor.*help\(GLib.TimeZone\).*', - GLib.TimeZone) + def test_timezone_constructor(self): + timezone = GLib.TimeZone("+05:21") + self.assertEqual(timezone.get_offset(0), ((5 * 60) + 21) * 60) def test_source_attach_implicit_context(self): context = GLib.MainContext.default() -- cgit v1.2.1