mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Tweaked some AutoField tests to not raise wanings in Python>=2.6, where BaseException.message has been deprecated.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17045 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -17,7 +17,7 @@ class ValidationMessagesTest(TestCase):
|
||||
try:
|
||||
models.AutoField(primary_key=False)
|
||||
except AssertionError, e:
|
||||
self.assertEqual(e.message, u"AutoFields must have primary_key=True.")
|
||||
self.assertEqual(str(e), "AutoFields must have primary_key=True.")
|
||||
|
||||
def test_integer_field_raises_error_message(self):
|
||||
f = models.IntegerField()
|
||||
|
||||
Reference in New Issue
Block a user