diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-01 19:57:06 -0800 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-01 19:57:06 -0800 |
commit | e8359847136e9ad76a670a382c0abc61cb4e81d3 (patch) | |
tree | ae514accfc7450852c3b2ab81e336ddc9fde4598 /tests/test_glib.py | |
parent | 9ce527b09ed032f2cc83c2d83de8bb6d7b19be02 (diff) | |
download | pygobject-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.py | 4 |
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) |