From 404555aeb787ed22b3d62428e6efecbac18fc89e Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Mon, 18 Dec 2023 13:55:19 +0100 Subject: [PATCH] try to fix BSD failures --- .github/workflows/bsd.yml | 2 +- psutil/tests/test_system.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml index 55a87cbd97..3af8d2371c 100644 --- a/.github/workflows/bsd.yml +++ b/.github/workflows/bsd.yml @@ -55,7 +55,7 @@ jobs: usesh: true prepare: | set -e - pkg_add -v pkgin + /usr/sbin/pkg_add -v pkgin pkgin update pkgin -y install python311-* py311-setuptools-* gcc12-* run: | diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index 68bfc24c96..43b1199f4d 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -433,6 +433,7 @@ def test_per_cpu_times_2(self): if difference >= 0.05: return + @retry_on_failure def test_cpu_times_comparison(self): # Make sure the sum of all per cpu times is almost equal to # base "one cpu" times.