diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index 0cae26d7e..9ddaf9cfe 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -758,9 +758,15 @@ def test_long_cmdline(self): self.assertEqual(p.cmdline(), cmdline) except psutil.ZombieProcess: raise unittest.SkipTest("OPENBSD: process turned into zombie") - else: + elif NETBSD: + ret = p.cmdline() + if ret == []: + # https://github.com/giampaolo/psutil/issues/2250 + raise unittest.SkipTest("OPENBSD: returned EBUSY") self.assertEqual(p.cmdline(), cmdline) + self.assertEqual(p.cmdline(), cmdline) + def test_name(self): p = self.spawn_psproc() name = p.name().lower()