Temporarily ignore DeprecationWarning in get_event_loop() in tests

This commit is contained in:
Miro Hrončok 2021-06-02 18:04:00 +02:00
parent 94e6de8860
commit 6be37c33e6
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/setup.cfg b/setup.cfg
index 3387720..fa69df8 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -10,6 +10,7 @@ testpaths = tests
filterwarnings =
error
ignore:the sets module:DeprecationWarning:jinja2.sandbox
+ ignore:There is no current event loop:DeprecationWarning
[coverage:run]
branch = True

View File

@ -11,6 +11,8 @@ Source0: %{pypi_source}
# cherry-picked patches to build with Python 3.10 (#1907442)
Patch1: 0001-add-linetable-to-the-preserved-CodeType-attributes-1.patch
Patch2: 0002-native_concat-pass-only-strings-to-literal_eval.patch
# temporarily ignore DeprecationWarning in get_event_loop() in tests
Patch3: 0003-ignore-get_event_loop-DeprecationWarning.patch
%if 0%{?fedora} || 0%{?rhel} > 7
# Enable python3 build by default