python-sqlalchemy/0001-filter-out-DeprecationWarnings.patch

34 lines
1.0 KiB
Diff
Raw Normal View History

From a4b4548bb64789577aa87145acb66f41f2e55a40 Mon Sep 17 00:00:00 2001
From: Tomas Hrnciar <thrnciar@redhat.com>
Date: Wed, 26 May 2021 13:18:27 +0200
Subject: [PATCH] filter out DeprecationWarnings
---
lib/sqlalchemy/testing/warnings.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lib/sqlalchemy/testing/warnings.py b/lib/sqlalchemy/testing/warnings.py
index 3236ecf..37d0b81 100644
--- a/lib/sqlalchemy/testing/warnings.py
+++ b/lib/sqlalchemy/testing/warnings.py
@@ -35,6 +35,16 @@ def setup_filters():
category=DeprecationWarning,
message="The loop argument is deprecated",
)
+ warnings.filterwarnings(
+ "ignore",
+ category=DeprecationWarning,
+ message="There is no current event loop",
+ )
+ warnings.filterwarnings(
+ "ignore",
+ category=DeprecationWarning,
+ message="SelectableGroups dict interface is deprecated. Use select.",
+ )
# ignore things that are deprecated *as of* 2.0 :)
warnings.filterwarnings(
--
2.31.1