Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #12590. Changed an expression in the validators tests to work c…

…orrectly with python 2.4. Thanks, ramiro.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 408d431 commit 86f283d4ca995c2b6cc7531249ba33b2bb6e1a4e @jkocherhans jkocherhans committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/modeltests/validators/
2  tests/modeltests/validators/
@@ -119,7 +119,7 @@
def create_simple_test_method(validator, expected, value, num):
- if isinstance(expected, type) and issubclass(expected, Exception):
+ if expected is not None and issubclass(expected, Exception):
test_mask = 'test_%s_raises_error_%d'
def test_func(self):
self.assertRaises(expected, validator, value)

0 comments on commit 86f283d

Please sign in to comment.
Something went wrong with that request. Please try again.