summaryrefslogtreecommitdiff
path: root/tests/test_overrides_glib.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-04-04 11:49:40 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-04-04 11:49:40 +0200
commitf42afa4f0d7045868008db95a79b0661d06b479f (patch)
tree3c6abe24c69c39e0150b2bdb977ebf05a067c55f /tests/test_overrides_glib.py
parentc20db2d70de4b730d0dd3e62333587d13e6d20a1 (diff)
downloadpygobject-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.py3
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)