diff options
author | Paul Pogonyshev <pogonyshev@gmx.net> | 2009-11-22 18:22:23 +0200 |
---|---|---|
committer | Paul Pogonyshev <pogonyshev@gmx.net> | 2009-11-22 18:22:23 +0200 |
commit | 408b2186aea58a41ec26b9d0ca29ecd42df5ef7e (patch) | |
tree | d9f31d382b7b9ef96af0e14cdee8dc398620178d /tests/test_properties.py | |
parent | 602afea88c338a38327cd84e08703c5daa384ec6 (diff) | |
download | pygobject-408b2186aea58a41ec26b9d0ca29ecd42df5ef7e.tar.gz pygobject-408b2186aea58a41ec26b9d0ca29ecd42df5ef7e.tar.xz pygobject-408b2186aea58a41ec26b9d0ca29ecd42df5ef7e.zip |
Fix wrong minimum checking in float properties
Bug #587637. Test the fix.
Diffstat (limited to 'tests/test_properties.py')
-rw-r--r-- | tests/test_properties.py | 6 |
1 files changed, 6 insertions, 0 deletions
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() |