this seems to be the best place to put this as it is guaranteed
before the module is imported. this is for the benefit of
3rd party dialects that also would have this in their conftest.py,
so that they don't have to do the "bootstrap" loading hack.
Change-Id: Ieae5324240e04a7919df46f4fca03f8db7a2af81
def pytest_configure(config):
- pytest.register_assert_rewrite("sqlalchemy.testing.assertions")
-
if hasattr(config, "slaveinput"):
plugin_base.restore_important_follower_config(config.slaveinput)
plugin_base.configure_follower(config.slaveinput["follower_ident"])
import os
import sys
+import pytest
+
+pytest.register_assert_rewrite("sqlalchemy.testing.assertions")
+
if not sys.flags.no_user_site:
# this is needed so that test scenarios like "python setup.py test"