summaryrefslogtreecommitdiff
path: root/tests/test_glib.py
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-01-01 19:57:06 -0800
committerSimon Feltman <sfeltman@src.gnome.org>2014-01-01 19:57:06 -0800
commite8359847136e9ad76a670a382c0abc61cb4e81d3 (patch)
treeae514accfc7450852c3b2ab81e336ddc9fde4598 /tests/test_glib.py
parent9ce527b09ed032f2cc83c2d83de8bb6d7b19be02 (diff)
downloadpygobject-e8359847136e9ad76a670a382c0abc61cb4e81d3.tar.gz
Cleanup disguised struct constructor error and add it to boxed
Give a cleaner error message when an attempt is made to create a disguised struct which also gives a hint to look at the pydoc. Add similar error to disguised boxed/unions. https://bugzilla.gnome.org/show_bug.cgi?id=647249
Diffstat (limited to 'tests/test_glib.py')
-rw-r--r--tests/test_glib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_glib.py b/tests/test_glib.py
index a01e83e5..995d8471 100644
--- a/tests/test_glib.py
+++ b/tests/test_glib.py
@@ -225,3 +225,7 @@ https://my.org/q?x=1&y=2
self.assertGreaterEqual(major, 3)
self.assertGreaterEqual(minor, 0)
self.assertGreaterEqual(micro, 0)
+
+ def test_timezone_constructor_error(self):
+ self.assertRaisesRegexp(TypeError, '.*constructor.*help\(GLib.TimeZone\).*',
+ GLib.TimeZone)