From 6be37c33e6030eb62be9e90a7208e00f8167c194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 2 Jun 2021 18:04:00 +0200 Subject: [PATCH] Temporarily ignore DeprecationWarning in get_event_loop() in tests --- 0003-ignore-get_event_loop-DeprecationWarning.patch | 12 ++++++++++++ python-jinja2.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 0003-ignore-get_event_loop-DeprecationWarning.patch diff --git a/0003-ignore-get_event_loop-DeprecationWarning.patch b/0003-ignore-get_event_loop-DeprecationWarning.patch new file mode 100644 index 0000000..f8586ed --- /dev/null +++ b/0003-ignore-get_event_loop-DeprecationWarning.patch @@ -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 diff --git a/python-jinja2.spec b/python-jinja2.spec index 0826c13..22ef28e 100644 --- a/python-jinja2.spec +++ b/python-jinja2.spec @@ -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