Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.2.X] Corrected the way databases were compared. This allows runnin…

…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...
commit 4f2e9aed339472e6d665e7b5c34de8ec7b29bac4 1 parent 9edd695
@alex alex authored
Showing with 1 addition and 2 deletions.
  1. +1 −1  django/db/backends/__init__.py
  2. +0 −1  tests/test_sqlite.py
View
2  django/db/backends/__init__.py
@@ -22,7 +22,7 @@ def __init__(self, settings_dict, alias=DEFAULT_DB_ALIAS):
self.alias = alias
def __eq__(self, other):
- return self.settings_dict == other.settings_dict
+ return self.alias == other.alias
def __ne__(self, other):
return not self == other
View
1  tests/test_sqlite.py
@@ -18,6 +18,5 @@
},
'other': {
'ENGINE': 'django.db.backends.sqlite3',
- 'TEST_NAME': 'other_db'
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.