Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a test that relied on database exceptions not being wrapped.

  • Loading branch information...
commit 7aaa8a7779f454c670448c580c8fa36cb37649d3 1 parent b2c697b
@aaugustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/backends/tests.py
View
4 tests/backends/tests.py
@@ -8,7 +8,7 @@
from django.conf import settings
from django.core.management.color import no_style
from django.db import (backend, connection, connections, DEFAULT_DB_ALIAS,
- IntegrityError, transaction)
+ DatabaseError, IntegrityError, transaction)
from django.db.backends.signals import connection_created
from django.db.backends.postgresql_psycopg2 import version as pg_version
from django.db.models import Sum, Avg, Variance, StdDev
@@ -444,7 +444,7 @@ def test_unicode_password(self):
connection.settings_dict['PASSWORD'] = "françois"
try:
cursor = connection.cursor()
- except backend.Database.DatabaseError:
+ except DatabaseError:
# As password is probably wrong, a database exception is expected
pass
except Exception as e:

0 comments on commit 7aaa8a7

Please sign in to comment.
Something went wrong with that request. Please try again.