Skip 2 tests that fail in brew due to broken IPv6
Resolves: rhbz#1913682
This commit is contained in:
parent
ceacd511ed
commit
861ce4807c
24
python-psutil-skip-tests-in-brew.patch
Normal file
24
python-psutil-skip-tests-in-brew.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
|
||||||
|
index c1d0a94..e9914a9 100755
|
||||||
|
--- a/psutil/tests/test_linux.py
|
||||||
|
+++ b/psutil/tests/test_linux.py
|
||||||
|
@@ -924,6 +924,7 @@ class TestLoadAvg(PsutilTestCase):
|
||||||
|
@unittest.skipIf(not LINUX, "LINUX only")
|
||||||
|
class TestSystemNetIfAddrs(PsutilTestCase):
|
||||||
|
|
||||||
|
+ @unittest.skip("Broken in brew")
|
||||||
|
def test_ips(self):
|
||||||
|
for name, addrs in psutil.net_if_addrs().items():
|
||||||
|
for addr in addrs:
|
||||||
|
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
|
||||||
|
index a55164c..21a04bb 100755
|
||||||
|
--- a/psutil/tests/test_system.py
|
||||||
|
+++ b/psutil/tests/test_system.py
|
||||||
|
@@ -724,6 +724,7 @@ class TestNetAPIs(PsutilTestCase):
|
||||||
|
self.assertEqual(psutil.net_io_counters(pernic=True), {})
|
||||||
|
assert m.called
|
||||||
|
|
||||||
|
+ @unittest.skip("Broken in brew")
|
||||||
|
def test_net_if_addrs(self):
|
||||||
|
nics = psutil.net_if_addrs()
|
||||||
|
assert nics, nics
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 5.8.0
|
Version: 5.8.0
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -13,9 +13,13 @@ Source0: %{url}/archive/release-%{version}/%{srcname}-%{version}.tar.gz
|
|||||||
# skip 2 tests that fail in mock chroots
|
# skip 2 tests that fail in mock chroots
|
||||||
#
|
#
|
||||||
Patch0: python-psutil-skip-tests-in-mock.patch
|
Patch0: python-psutil-skip-tests-in-mock.patch
|
||||||
|
#
|
||||||
|
# skip 2 tests that fail in brew due to broken IPv6
|
||||||
|
#
|
||||||
|
Patch1: python-psutil-skip-tests-in-brew.patch
|
||||||
|
|
||||||
# Add tolerance to psutil.tests.test_linux.TestSystemVirtualMemory.test_total
|
# Add tolerance to psutil.tests.test_linux.TestSystemVirtualMemory.test_total
|
||||||
Patch1: https://github.com/giampaolo/psutil/pull/1935.patch#/python-psutil-add-tolerance.patch
|
Patch2: https://github.com/giampaolo/psutil/pull/1935.patch#/python-psutil-add-tolerance.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -75,6 +79,10 @@ make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sit
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 15 2021 Miro Hrončok <mhroncok@redhat.com> - 5.8.0-8
|
||||||
|
- Skip 2 tests that fail in brew due to broken IPv6
|
||||||
|
Resolves: rhbz#1913682
|
||||||
|
|
||||||
* Thu Apr 15 2021 Miro Hrončok <mhroncok@redhat.com> - 5.8.0-7
|
* Thu Apr 15 2021 Miro Hrončok <mhroncok@redhat.com> - 5.8.0-7
|
||||||
- Add tolerance to a flaky test
|
- Add tolerance to a flaky test
|
||||||
Resolves: rhbz#1913682
|
Resolves: rhbz#1913682
|
||||||
|
Loading…
Reference in New Issue
Block a user