Commit 4f2e9aed authored by Alex Gaynor's avatar Alex Gaynor
Browse files

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

[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
parent 9edd6953
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+0 −1
Original line number Diff line number Diff line
@@ -18,6 +18,5 @@ DATABASES = {
    },
    'other': {
        'ENGINE': 'django.db.backends.sqlite3',
        'TEST_NAME': 'other_db'
    }
}