diff options
| author | Barry Warsaw | 2012-07-25 13:39:50 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-07-25 13:39:50 -0400 |
| commit | 8dec52e851c4cd8fcdd29702b95fad039fcedf2a (patch) | |
| tree | b1a2075161015f6469a13cf93bfeac70e5366a18 /src/mailman/database/postgresql.py | |
| parent | ce410fe79601009220e850ad07b6931d29918376 (diff) | |
| download | mailman-8dec52e851c4cd8fcdd29702b95fad039fcedf2a.tar.gz mailman-8dec52e851c4cd8fcdd29702b95fad039fcedf2a.tar.zst mailman-8dec52e851c4cd8fcdd29702b95fad039fcedf2a.zip | |
Diffstat (limited to 'src/mailman/database/postgresql.py')
| -rw-r--r-- | src/mailman/database/postgresql.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py index e7c40407a..1d1abca9e 100644 --- a/src/mailman/database/postgresql.py +++ b/src/mailman/database/postgresql.py @@ -34,7 +34,7 @@ from mailman.database.base import StormBaseDatabase -class _TemporaryDB: +class _TestDB: # For the test suite; bool column values. TRUE = 'True' FALSE = 'False' @@ -86,7 +86,7 @@ class PostgreSQLDatabase(StormBaseDatabase): """.format(model_class.__storm_table__)) @staticmethod - def _make_temporary(): + def _make_testdb(): from mailman.testing.helpers import configuration parts = urlsplit(config.database.url) assert parts.scheme == 'postgres' @@ -98,8 +98,8 @@ class PostgreSQLDatabase(StormBaseDatabase): # after the test. config.db.store.execute('ABORT;') config.db.store.execute('CREATE DATABASE mmtest;') - # Now create a new, temporary database. + # Now create a new, test database. database = PostgreSQLDatabase() with configuration('database', url=url): database.initialize() - return _TemporaryDB(database) + return _TestDB(database) |
