From 1d2969b2027ac563a9c7d5653291e48bc89bd015ca623ed45e3664a5c7f80b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 19 Apr 2021 08:13:21 +0000 Subject: [PATCH] Accepting request 886064 from home:bnavigator:branches:devel:languages:python:pytest - Fix test suite: Don't error on OBS resource warnings OBS-URL: https://build.opensuse.org/request/show/886064 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-filter-subpackage?expand=0&rev=5 --- python-pytest-filter-subpackage.changes | 5 +++++ python-pytest-filter-subpackage.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-pytest-filter-subpackage.changes b/python-pytest-filter-subpackage.changes index b0eb39e..1ac4b23 100644 --- a/python-pytest-filter-subpackage.changes +++ b/python-pytest-filter-subpackage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 16 15:02:16 UTC 2021 - Ben Greiner + +- Fix test suite: Don't error on OBS resource warnings + ------------------------------------------------------------------- Wed Dec 9 00:01:05 UTC 2020 - Benjamin Greiner diff --git a/python-pytest-filter-subpackage.spec b/python-pytest-filter-subpackage.spec index 1ec0aa4..531874e 100644 --- a/python-pytest-filter-subpackage.spec +++ b/python-pytest-filter-subpackage.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-filter-subpackage # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -53,6 +53,8 @@ shortcut to testing all code and documentation for a given sub-package. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# don't error on obs resource warnings +sed -i '/^\s*error/ a \ ignore::ResourceWarning' setup.cfg %pytest %files %{python_files}