From 7dd31acfee786bfb8887573b9f1f62c17c125e56 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sun, 17 Dec 2023 13:42:08 +0100 Subject: [PATCH] remove temporary @skipIf windows tests --- psutil/tests/test_contracts.py | 4 +--- psutil/tests/test_process.py | 1 - psutil/tests/test_unicode.py | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index 6ed7eaae4..2874c0d90 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -357,7 +357,7 @@ def proc_info(pid): def check_exception(exc, proc, name, ppid): tcase.assertEqual(exc.pid, pid) - tcase.assertEqual(exc.name, proc._name) + tcase.assertEqual(exc.name, name) if isinstance(exc, psutil.ZombieProcess): tcase.assertProcessZombie(proc) if exc.ppid is not None: @@ -433,8 +433,6 @@ def iter_proc_info(self): ls.append(proc_info(pid)) return ls - # XXX - @unittest.skipIf(WINDOWS, "temporary") def test_all(self): failures = [] for info in self.iter_proc_info(): diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index 7153dae85..6a90c5b93 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -728,7 +728,6 @@ def test_cmdline(self): self.assertEqual(' '.join(p.cmdline()), ' '.join(cmdline)) @unittest.skipIf(PYPY, "broken on PYPY") - @unittest.skipIf(WINDOWS, "temporary") def test_long_cmdline(self): testfn = self.get_testfn() create_exe(testfn) diff --git a/psutil/tests/test_unicode.py b/psutil/tests/test_unicode.py index 66627702c..cf9500a3f 100755 --- a/psutil/tests/test_unicode.py +++ b/psutil/tests/test_unicode.py @@ -167,7 +167,6 @@ def setUp(self): @serialrun @unittest.skipIf(ASCII_FS, "ASCII fs") @unittest.skipIf(PYPY and not PY3, "too much trouble on PYPY2") -@unittest.skipIf(WINDOWS, "temporary") class TestFSAPIs(BaseUnicodeTest): """Test FS APIs with a funky, valid, UTF8 path name."""