From 4c306818396c8cc98a16a14c5ed3361cf6ff373a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 22 Aug 2017 13:12:43 -0400 Subject: - allow a separate template database to be used for PG CREATE DATABASE. as nobody will connect to it that would solve the contention issue here Change-Id: I00a4d52091876e120faff4a8a5493c53280d96f1 --- lib/sqlalchemy/testing/plugin/plugin_base.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py') diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py index 2aeebd319..aeae944fe 100644 --- a/lib/sqlalchemy/testing/plugin/plugin_base.py +++ b/lib/sqlalchemy/testing/plugin/plugin_base.py @@ -65,6 +65,9 @@ def setup_options(make_option): help="Run only tests marked with __backend__") make_option("--nomemory", action="store_true", dest="nomemory", help="Don't run memory profiling tests") + make_option("--postgresql-templatedb", type="string", + help="name of template database to use for Postgresql " + "CREATE DATABASE (defaults to current database)") make_option("--low-connections", action="store_true", dest="low_connections", help="Use a low number of distinct connections - " -- cgit v1.2.1