diff options
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r-- | tests/test_gi.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py index db138e66..bf51874c 100644 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -1610,6 +1610,11 @@ class TestGValue(unittest.TestCase): self.assertRaises(OverflowError, GIMarshallingTests.gvalue_flat_array, [GLib.MININT - 1, "42", True]) + with pytest.raises(OverflowError, + match=r'.*not in range %d to %d.*' % ( + GLib.MININT, GLib.MAXINT)): + GIMarshallingTests.gvalue_flat_array([GLib.MAXINT + 1, "42", True]) + def test_gvalue_flat_array_out(self): values = GIMarshallingTests.return_gvalue_flat_array() self.assertEqual(values, [42, '42', True]) |