From c0e1eb1dde786eaaa34317abe09371ab6505fdeb Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Thu, 19 Dec 2024 10:47:25 +0100 Subject: [PATCH] try to fix some flaky tests 2 --- psutil/tests/test_process.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index fa819643d..34add6515 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -813,6 +813,7 @@ def test_name(self): @pytest.mark.skipif(PYPY or QEMU_USER, reason="unreliable on PYPY") @pytest.mark.skipif(QEMU_USER, reason="unreliable on QEMU user") + @pytest.mark.skipif(MACOS and not PY3, reason="broken MACOS + PY2") def test_long_name(self): pyexe = create_py_exe(self.get_testfn(suffix=string.digits * 2)) cmdline = [ @@ -845,6 +846,7 @@ def test_long_name(self): @pytest.mark.skipif(PYPY, reason="broken on PYPY") @pytest.mark.skipif(SUNOS, reason="broken on SUNOS") @pytest.mark.skipif(MACOS and not PY3, reason="broken MACOS + PY2") + @retry_on_failure def test_prog_w_funky_name(self): # Test that name(), exe() and cmdline() correctly handle programs # with funky chars such as spaces and ")", see: