summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2012-09-17 23:51:48 +0100
committerAndrew Godwin <andrew@aeracode.org>2012-09-17 23:51:48 +0100
commit06227fbb835aabab1f4bfb9ef26c9d07c90ff8ea (patch)
tree9f405ea566c9a2f411ae30d860159e9574eaad3e /tests
parentc5e2ecae6949d4e89530610d768bbbd563ddc19b (diff)
Python 3 compatability. 2.6 was a while back, I should learn ' as '.
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/schema/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modeltests/schema/tests.py b/tests/modeltests/schema/tests.py
index df482e8181..3a9f85643a 100644
--- a/tests/modeltests/schema/tests.py
+++ b/tests/modeltests/schema/tests.py
@@ -103,7 +103,7 @@ class SchemaTests(TestCase):
# Check that it's there
try:
list(Author.objects.all())
- except DatabaseError, e:
+ except DatabaseError as e:
self.fail("Table not created: %s" % e)
# Clean up that table
editor.start()
@@ -128,11 +128,11 @@ class SchemaTests(TestCase):
# Check that initial tables are there
try:
list(Author.objects.all())
- except DatabaseError, e:
+ except DatabaseError as e:
self.fail("Author table not created: %s" % e)
try:
list(Book.objects.all())
- except DatabaseError, e:
+ except DatabaseError as e:
self.fail("Book table not created: %s" % e)
# Make sure the FK constraint is present
with self.assertRaises(IntegrityError):