mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
We were getting a warning like this from the pg_regress tests:
=================== warnings summary ===================
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:663
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:663: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: fixtures.pg_stats
self.import_plugin(import_spec)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
------------------ Benchmark results -------------------
To fix, reorder the imports in conftest.py. I'm not sure what exactly
the problem was or why the order matters, but the warning is gone and
that's good enough for me.
6 lines
213 B
Python
6 lines
213 B
Python
pytest_plugins = ("fixtures.neon_fixtures",
|
|
"fixtures.benchmark_fixture",
|
|
"fixtures.pg_stats",
|
|
"fixtures.compare_fixtures",
|
|
"fixtures.slow")
|