summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin/bootstrap.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-01-14 03:40:22 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2021-01-14 03:40:22 +0000
commit0e36c1bbe7c4fc83df13e756f04d9fa0fa8d5d39 (patch)
treee204b02318476336a519cd6b0016ef54c9245f0f /lib/sqlalchemy/testing/plugin/bootstrap.py
parent0a41f9bea6602c52c59af0f7b572308b2c2b27ab (diff)
parentf1e96cb0874927a475d0c111393b7861796dd758 (diff)
downloadsqlalchemy-0e36c1bbe7c4fc83df13e756f04d9fa0fa8d5d39.tar.gz
Merge "reinvent xdist hooks in terms of pytest fixtures"
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/bootstrap.py')
-rw-r--r--lib/sqlalchemy/testing/plugin/bootstrap.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/plugin/bootstrap.py b/lib/sqlalchemy/testing/plugin/bootstrap.py
index a95c947e2..1f568dfc8 100644
--- a/lib/sqlalchemy/testing/plugin/bootstrap.py
+++ b/lib/sqlalchemy/testing/plugin/bootstrap.py
@@ -40,6 +40,11 @@ def load_file_as_module(name):
if to_bootstrap == "pytest":
sys.modules["sqla_plugin_base"] = load_file_as_module("plugin_base")
+ sys.modules["sqla_plugin_base"].bootstrapped_as_sqlalchemy = True
+ if sys.version_info < (3, 0):
+ sys.modules["sqla_reinvent_fixtures"] = load_file_as_module(
+ "reinvent_fixtures_py2k"
+ )
sys.modules["sqla_pytestplugin"] = load_file_as_module("pytestplugin")
else:
raise Exception("unknown bootstrap: %s" % to_bootstrap) # noqa