Skip to content

Commit

Permalink
[1.2.X] Corrected the way databases were compared. This allows runnin…
Browse files Browse the repository at this point in the history
…g the test suite with two in memory SQLite databases. Backport of [14619].

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
alex committed Nov 19, 2010
1 parent 9edd695 commit 4f2e9ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion django/db/backends/__init__.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, settings_dict, alias=DEFAULT_DB_ALIAS):
self.alias = alias self.alias = alias


def __eq__(self, other): def __eq__(self, other):
return self.settings_dict == other.settings_dict return self.alias == other.alias


def __ne__(self, other): def __ne__(self, other):
return not self == other return not self == other
Expand Down
1 change: 0 additions & 1 deletion tests/test_sqlite.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@
}, },
'other': { 'other': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'TEST_NAME': 'other_db'
} }
} }

0 comments on commit 4f2e9ae

Please sign in to comment.