diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-04 11:49:40 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-04 11:49:40 +0200 |
commit | f42afa4f0d7045868008db95a79b0661d06b479f (patch) | |
tree | 3c6abe24c69c39e0150b2bdb977ebf05a067c55f /tests/test_overrides_glib.py | |
parent | c20db2d70de4b730d0dd3e62333587d13e6d20a1 (diff) | |
download | pygobject-f42afa4f0d7045868008db95a79b0661d06b479f.tar.gz |
overflow tests: fix error message match in case the value is larger than long
It will fail early in PYGLIB_PyLong_AsLong() and give us a different error message.
It would be nice if the error would be independent of the long size, but that's
for another time.
Diffstat (limited to 'tests/test_overrides_glib.py')
-rw-r--r-- | tests/test_overrides_glib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_overrides_glib.py b/tests/test_overrides_glib.py index 8df4b41a..d0a2d64c 100644 --- a/tests/test_overrides_glib.py +++ b/tests/test_overrides_glib.py @@ -576,7 +576,8 @@ class TestGVariant(unittest.TestCase): gerror, source_str) gerror = GLib.Error(code=GLib.MAXUINT) - self.assertRaisesRegexp(OverflowError, ".*not in range.*", + self.assertRaisesRegexp(OverflowError, + ".*(not in range|too large to convert).*", GLib.Variant.parse_error_print_context, gerror, source_str) |