perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / python / psutil / patches / 04-test-disable-failing.patch
blob1d0d3b91bcc0e7e75e820e419d9df708f82f9436
1 --- psutil-6.0.0/psutil/tests/test_process.py.orig
2 +++ psutil-6.0.0/psutil/tests/test_process.py
3 @@ -309,6 +309,7 @@
4 time.strftime("%Y %m %d %H:%M:%S", time.localtime(p.create_time()))
6 @unittest.skipIf(not POSIX, 'POSIX only')
7 + @unittest.skip('always fails: https://github.com/giampaolo/psutil/issues/2043')
8 def test_terminal(self):
9 terminal = psutil.Process().terminal()
10 if terminal is not None:
11 @@ -766,6 +767,7 @@
12 self.assertEqual(' '.join(p.cmdline()), ' '.join(cmdline))
14 @unittest.skipIf(PYPY, "broken on PYPY")
15 + @unittest.skip("always fails: https://github.com/giampaolo/psutil/issues/2357")
16 def test_long_cmdline(self):
17 cmdline = [PYTHON_EXE]
18 cmdline.extend(["-v"] * 50)
19 @@ -871,6 +873,7 @@
20 if hasattr(os, "getresuid"):
21 self.assertEqual(os.getresgid(), p.gids())
23 + @unittest.skip('process priority and nice does not match')
24 def test_nice(self):
25 def cleanup(init):
26 try:
27 @@ -1416,6 +1419,7 @@
28 self.assertEqual(p.status(), psutil.STATUS_ZOMBIE)
29 assert m.called
31 + @unittest.skip("always fails")
32 def test_reused_pid(self):
33 # Emulate a case where PID has been reused by another process.
34 if PY3:
35 --- psutil-6.0.0/psutil/tests/test_misc.py.orig
36 +++ psutil-6.0.0/psutil/tests/test_misc.py
37 @@ -630,6 +630,7 @@
38 with mock.patch('psutil._common.stat.S_ISREG', return_value=False):
39 assert not isfile_strict(this_file)
41 + @unittest.skip('always fails: https://github.com/giampaolo/psutil/issues/2043')
42 def test_debug(self):
43 if PY3:
44 from io import StringIO
45 --- psutil-6.0.0/psutil/tests/test_posix.py.orig
46 +++ psutil-6.0.0/psutil/tests/test_posix.py
47 @@ -443,6 +443,7 @@
48 # AIX can return '-' in df output instead of numbers, e.g. for /proc
49 @unittest.skipIf(AIX, "unreliable on AIX")
50 @retry_on_failure()
51 + @unittest.skip("fails on zfs")
52 def test_disk_usage(self):
53 def df(device):
54 try:
55 --- psutil-6.0.0/psutil/tests/test_unicode.py.orig
56 +++ psutil-6.0.0/psutil/tests/test_unicode.py
57 @@ -223,6 +223,7 @@
58 if self.expect_exact_path_match():
59 self.assertEqual(name, os.path.basename(self.funky_name))
61 + @unittest.skip("always fails: https://github.com/giampaolo/psutil/issues/2357")
62 def test_proc_cmdline(self):
63 cmd = [
64 self.funky_name,
65 @@ -265,6 +266,7 @@
68 @unittest.skipIf(not POSIX, "POSIX only")
69 + @unittest.skip("always fails: https://github.com/giampaolo/psutil/issues/1489")
70 def test_proc_net_connections(self):
71 name = self.get_testfn(suffix=self.funky_suffix)
72 try:
73 @@ -312,6 +314,7 @@
74 @unittest.skipIf(not HAS_MEMORY_MAPS, "not supported")
75 @unittest.skipIf(not PY3, "ctypes does not support unicode on PY2")
76 @unittest.skipIf(PYPY, "unstable on PYPY")
77 + @unittest.skip("always fails")
78 def test_memory_maps(self):
79 # XXX: on Python 2, using ctypes.CDLL with a unicode path
80 # opens a message box which blocks the test run.
81 --- psutil-6.0.0/psutil/tests/__init__.py.orig
82 +++ psutil-6.0.0/psutil/tests/__init__.py
83 @@ -1025,6 +1025,7 @@
84 raise AssertionError(msg)
85 proc.wait(timeout=0) # assert not raise TimeoutExpired
87 + @unittest.skip("fails on illumos too: https://github.com/giampaolo/psutil/pull/2289")
88 def assertProcessZombie(self, proc):
89 # A zombie process should always be instantiable.
90 clone = psutil.Process(proc.pid)
91 --- psutil-6.0.0/psutil/tests/test_process_all.py.orig
92 +++ psutil-6.0.0/psutil/tests/test_process_all.py
93 @@ -15,6 +15,7 @@
94 import stat
95 import time
96 import traceback
97 +import unittest
99 import psutil
100 from psutil import AIX
101 @@ -130,6 +131,7 @@
102 ls.append(proc_info(pid))
103 return ls
105 + @unittest.skip('always fails: https://github.com/giampaolo/psutil/issues/2358')
106 def test_all(self):
107 failures = []
108 for info in self.iter_proc_info():