diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-19 08:15:40 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-19 08:15:40 +0000 |
| commit | 4f2e9aed339472e6d665e7b5c34de8ec7b29bac4 (patch) | |
| tree | 2efb324d42239da996dc487d9300894820aa46f1 | |
| parent | 9edd6953ccb2e173ffc94a8f3eaff8e3fa236e7f (diff) | |
[1.2.X] Corrected the way databases were compared. This allows running 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
| -rw-r--r-- | django/db/backends/__init__.py | 2 | ||||
| -rw-r--r-- | tests/test_sqlite.py | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 75f40cd36f..0d9f53384a 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -22,7 +22,7 @@ class BaseDatabaseWrapper(local): 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 diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py index c789828589..de8bf9339c 100644 --- a/tests/test_sqlite.py +++ b/tests/test_sqlite.py @@ -18,6 +18,5 @@ DATABASES = { }, 'other': { 'ENGINE': 'django.db.backends.sqlite3', - 'TEST_NAME': 'other_db' } } |
