From 22f5cca8c5fa610139f7fd4aca777b33bd493c25 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sat, 1 Apr 2006 20:16:56 +0000 Subject: unit test for #335854 --- ChangeLog | 2 ++ tests/test_properties.py | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 56c5931..e9c0fe9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-04-01 Gustavo J. A. M. Carneiro + * tests/test_properties.py: Add test for #335854. + * pygtk.py.in (require): For version == '2.0', use a hardcoded pygtk path, recorded during build. diff --git a/tests/test_properties.py b/tests/test_properties.py index de290be..c73e6a9 100644 --- a/tests/test_properties.py +++ b/tests/test_properties.py @@ -3,7 +3,7 @@ import unittest from common import testhelper from gobject import GObject, GType, new, PARAM_READWRITE, \ - PARAM_CONSTRUCT, PARAM_CONSTRUCT_ONLY, TYPE_UINT64 + PARAM_CONSTRUCT, PARAM_READABLE, PARAM_CONSTRUCT_ONLY, TYPE_UINT64 class PropertyObject(GObject): __gproperties__ = { @@ -110,3 +110,13 @@ class TestProperties(unittest.TestCase): obj.props.uint64 = 1 self.assertEqual(obj.props.uint64, 1L) + def testUInt64DefaultValue(self): + try: + class TimeControl(GObject): + __gproperties__ = { + 'time': (TYPE_UINT64, 'Time', 'Time', + 0L, (1<<64) - 1, 0L, + PARAM_READABLE) + } + except OverflowError, ex: + self.fail(str(ex)) -- cgit