From 2d08b554a9a944f60d5471a6eca94dc32f42d1ba Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 5 Apr 2009 14:39:35 +0000 Subject: Bug 577999 – converting a negative long Python value to a GUINT64 GValue doesn't error out as it should MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=1054 --- tests/test_properties.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/test_properties.py b/tests/test_properties.py index a691b32..e3be865 100644 --- a/tests/test_properties.py +++ b/tests/test_properties.py @@ -85,6 +85,9 @@ class TestProperties(unittest.TestCase): obj.props.uint64 = 1 self.assertEqual(obj.props.uint64, 1L) + self.assertRaises((TypeError, OverflowError), obj.set_property, "uint64", -1L) + self.assertRaises((TypeError, OverflowError), obj.set_property, "uint64", -1) + def testUInt64DefaultValue(self): try: class TimeControl(GObject): -- cgit