diff options
author | erick <erick@sugar-dev-erick.(none)> | 2009-12-05 00:19:19 (GMT) |
---|---|---|
committer | erick <erick@sugar-dev-erick.(none)> | 2009-12-05 00:19:19 (GMT) |
commit | dbf88e0f12fe015467ecf89d95a2ba4303d9f73a (patch) | |
tree | 875d5a0f321128db76de01faca006af84b72cbd4 /tests/propertiestests.py | |
parent | cda15f1fffcca24286867a9064d30dec662e796b (diff) | |
parent | 9a44da4488a0ff00150eb5cb114f74ba560b96a6 (diff) |
Merge branch 'master' into frame_integration
Diffstat (limited to 'tests/propertiestests.py')
-rw-r--r-- | tests/propertiestests.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/propertiestests.py b/tests/propertiestests.py index cb8e884..49d2312 100644 --- a/tests/propertiestests.py +++ b/tests/propertiestests.py @@ -29,28 +29,28 @@ def try_wrong_values(obj): try: obj.prop = 3 assert False, "Able to insert int value in property of type %s"%typ - except: + except ValueError: pass if typ != "float": try: obj.prop = 1.1 assert False, "Able to insert float value in property of type %s"%typ - except: + except ValueError: pass if typ != "string": try: obj.prop = "Fake string" assert False, "Able to insert string value in property of type %s"%typ - except: + except ValueError: pass if typ != "array": try: obj.prop = [1, 2000, 3, 400] assert False, "Able to insert array value in property of type %s"%typ - except: + except ValueError: pass if typ != "color": @@ -58,7 +58,7 @@ def try_wrong_values(obj): obj.prop = [1,2,3] if typ != "array": assert False, "Able to insert color value in property of type %s"%typ - except: + except ValueError: pass if typ != "boolean": @@ -66,7 +66,7 @@ def try_wrong_values(obj): obj.prop = True if typ != "boolean": assert False, "Able to set boolean value in property of type %s"%typ - except: + except ValueError: pass class BasePropertyTest(unittest.TestCase): |