From 408b2186aea58a41ec26b9d0ca29ecd42df5ef7e Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Sun, 22 Nov 2009 18:22:23 +0200 Subject: Fix wrong minimum checking in float properties Bug #587637. Test the fix. --- tests/test_properties.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/test_properties.py b/tests/test_properties.py index e3be865..ccfcb34 100644 --- a/tests/test_properties.py +++ b/tests/test_properties.py @@ -366,5 +366,11 @@ class TestProperty(unittest.TestCase): else: raise AssertionError + # Bug 587637. + def test_float_min(self): + gobject.property(type=float, minimum=-1) + gobject.property(type=gobject.TYPE_FLOAT, minimum=-1) + gobject.property(type=gobject.TYPE_DOUBLE, minimum=-1) + if __name__ == '__main__': unittest.main() -- cgit