summaryrefslogtreecommitdiff
path: root/psutil/tests/test_posix.py
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/tests/test_posix.py')
-rwxr-xr-xpsutil/tests/test_posix.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py
index d2631215..8ea6cf7c 100755
--- a/psutil/tests/test_posix.py
+++ b/psutil/tests/test_posix.py
@@ -351,12 +351,7 @@ class TestSystemAPIs(PsutilTestCase):
self.assertEqual(u.name, users[idx])
self.assertEqual(u.terminal, terminals[idx])
if u.pid is not None: # None on OpenBSD
- p = psutil.Process(u.pid)
- # on macOS time is off by ~47 secs for some reason, but
- # the next test against 'who' CLI succeeds
- delta = 60 if MACOS else 1
- self.assertAlmostEqual(
- u.started, p.create_time(), delta=delta)
+ psutil.Process(u.pid)
@retry_on_failure()
def test_users_started(self):