summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2006-04-01 20:16:56 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2006-04-01 20:16:56 +0000
commit22f5cca8c5fa610139f7fd4aca777b33bd493c25 (patch)
treea1c5fd90c76ace7bb7206b699801565f206b19e6
parentbdd7fe0d910a0bba8c44bda9c6ef699ffd4296e0 (diff)
downloadpygobject-22f5cca8c5fa610139f7fd4aca777b33bd493c25.tar.gz
pygobject-22f5cca8c5fa610139f7fd4aca777b33bd493c25.tar.xz
pygobject-22f5cca8c5fa610139f7fd4aca777b33bd493c25.zip
unit test for #335854
-rw-r--r--ChangeLog2
-rw-r--r--tests/test_properties.py12
2 files changed, 13 insertions, 1 deletions
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 <gjc@gnome.org>
+ * 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))