summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-01-24 22:08:21 +0000
committerGiampaolo Rodola <g.rodola@gmail.com>2020-01-24 22:08:21 +0000
commit3165099db86e28cecf0bb31e3cd9a42dc3fc7483 (patch)
tree6fc21897a50bb912ec37d06634ba45ee83297f48
parent4adf400d411b659ce942a2d4e0055db3776b1ba5 (diff)
downloadpsutil-3165099db86e28cecf0bb31e3cd9a42dc3fc7483.tar.gz
fix cirrus tests
-rwxr-xr-xpsutil/tests/test_bsd.py2
-rwxr-xr-xpsutil/tests/test_connections.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/test_bsd.py b/psutil/tests/test_bsd.py
index 2b3c251a..e525e667 100755
--- a/psutil/tests/test_bsd.py
+++ b/psutil/tests/test_bsd.py
@@ -376,7 +376,7 @@ class FreeBSDSystemTestCase(unittest.TestCase):
def test_cpu_stats_syscalls(self):
# pretty high tolerance but it looks like it's OK.
self.assertAlmostEqual(psutil.cpu_stats().syscalls,
- sysctl('vm.stats.sys.v_syscall'), delta=100000)
+ sysctl('vm.stats.sys.v_syscall'), delta=200000)
# def test_cpu_stats_traps(self):
# self.assertAlmostEqual(psutil.cpu_stats().traps,
diff --git a/psutil/tests/test_connections.py b/psutil/tests/test_connections.py
index c3dd65f2..b7f3a52b 100755
--- a/psutil/tests/test_connections.py
+++ b/psutil/tests/test_connections.py
@@ -317,7 +317,7 @@ class TestConnectedSocket(Base, unittest.TestCase):
cons = [c for c in cons if c.raddr != '/var/run/log']
if CIRRUS:
cons = [c for c in cons if c.fd in
- (server.fileno() or client.fileno())]
+ (server.fileno(), client.fileno())]
self.assertEqual(len(cons), 2, msg=cons)
if LINUX or FREEBSD or SUNOS:
# remote path is never set