Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Python 3 compatability. 2.6 was a while back, I should learn ' as '.

  • Loading branch information...
commit 06227fbb835aabab1f4bfb9ef26c9d07c90ff8ea 1 parent c5e2eca
@andrewgodwin andrewgodwin authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/modeltests/schema/tests.py
View
6 tests/modeltests/schema/tests.py
@@ -103,7 +103,7 @@ def test_creation_deletion(self):
# 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 @@ def test_fk(self):
# 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):
Please sign in to comment.
Something went wrong with that request. Please try again.