Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…orrectly with python 2.4. Thanks, ramiro.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 86f283d4ca995c2b6cc7531249ba33b2bb6e1a4e 1 parent 408d431
Joseph Kocherhans authored January 21, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tests/modeltests/validators/tests.py
2  tests/modeltests/validators/tests.py
@@ -119,7 +119,7 @@
119 119
 )
120 120
 
121 121
 def create_simple_test_method(validator, expected, value, num):
122  
-    if isinstance(expected, type) and issubclass(expected, Exception):
  122
+    if expected is not None and issubclass(expected, Exception):
123 123
         test_mask = 'test_%s_raises_error_%d'
124 124
         def test_func(self):
125 125
             self.assertRaises(expected, validator, value)

0 notes on commit 86f283d

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