1
0
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:
Julien Phalip
2011-10-28 04:11:41 +00:00
parent a693bbe0ac
commit b87114962f
2 changed files with 2 additions and 2 deletions

View File

@@ -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."