diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2009-04-05 14:39:35 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2009-04-05 14:39:35 +0000 |
commit | 2d08b554a9a944f60d5471a6eca94dc32f42d1ba (patch) | |
tree | de55053480e89122f215c8a5bbd93b92994e6f80 /tests | |
parent | 7193a0e14e488ef07f723a0b9f490a03fe291650 (diff) | |
download | pygobject-2d08b554a9a944f60d5471a6eca94dc32f42d1ba.tar.gz pygobject-2d08b554a9a944f60d5471a6eca94dc32f42d1ba.tar.xz pygobject-2d08b554a9a944f60d5471a6eca94dc32f42d1ba.zip |
Bug 577999 – converting a negative long Python value to a GUINT64 GValue doesn't error out as it should
svn path=/trunk/; revision=1054
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_properties.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): |