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:
@@ -102,4 +102,4 @@ try:
|
||||
auto2 = models.AutoField(primary_key=True)
|
||||
except AssertionError, assertion_error:
|
||||
pass # Fail silently
|
||||
assert assertion_error.message == u"A model can't have more than one AutoField."
|
||||
assert str(assertion_error) == u"A model can't have more than one AutoField."
|
||||
Reference in New Issue
Block a user