with the merge of If6b792e57c8c5dff205419644ab68e631575a2fa
in SQLAlchemy we can remove this last 2.0 deprecation warning
filter.
Change-Id: I2a615dc70432e9b6a89a551f405c2a81bcbb8981
warnings.filterwarnings(
"once", category=pytest.PytestDeprecationWarning
)
-
- if hasattr(sa_exc, "RemovedIn20Warning"):
- for msg in [
- #
- # Core execution - need to remove this after SQLAlchemy
- # repairs it in provisioning
- #
- r"The connection.execute\(\) method in SQLAlchemy 2.0 will accept "
- "parameters as a single dictionary or a single sequence of "
- "dictionaries only.",
- ]:
- warnings.filterwarnings(
- "ignore",
- message=msg,
- category=sa_exc.RemovedIn20Warning,
- )