summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2010-01-21 03:02:13 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2010-01-21 03:02:13 +0000
commit86f283d4ca995c2b6cc7531249ba33b2bb6e1a4e (patch)
tree0bd656ceec7dcd5b9a9bbd310eb5db69183192a8
parent408d4310291cd1287f3dbc05aaeb5d205eba8751 (diff)
Fixed #12590. Changed an expression in the validators tests to work correctly with python 2.4. Thanks, ramiro.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/validators/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/validators/tests.py b/tests/modeltests/validators/tests.py
index f36d8c4713..6c1e6d780f 100644
--- a/tests/modeltests/validators/tests.py
+++ b/tests/modeltests/validators/tests.py
@@ -119,7 +119,7 @@ TEST_DATA = (
)
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)