python-psutil/psutil-5.4.3-disable-broken-tests.patch
Troy Dawson 4f44dad016 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/python-psutil#64d17fc0a5f9335acd49e67b99cb66f4165132b6
2020-10-14 19:42:27 -07:00

67 lines
3.1 KiB
Diff

--- psutil/tests/test_memory_leaks.py~ 2018-01-01 14:32:56.000000000 -0600
+++ psutil/tests/test_memory_leaks.py 2018-01-22 10:03:05.206021533 -0600
@@ -365,14 +365,14 @@
@skip_if_linux()
# Windows implementation is based on a single system-wide
# function (tested later).
- @unittest.skipIf(WINDOWS, "worthless on WINDOWS")
- def test_connections(self):
- # TODO: UNIX sockets are temporarily implemented by parsing
- # 'pfiles' cmd output; we don't want that part of the code to
- # be executed.
- with create_sockets():
- kind = 'inet' if SUNOS else 'all'
- self.execute(self.proc.connections, kind)
+# @unittest.skipIf(WINDOWS, "worthless on WINDOWS")
+# def test_connections(self):
+# # TODO: UNIX sockets are temporarily implemented by parsing
+# # 'pfiles' cmd output; we don't want that part of the code to
+# # be executed.
+# with create_sockets():
+# kind = 'inet' if SUNOS else 'all'
+# self.execute(self.proc.connections, kind)
@unittest.skipIf(not HAS_ENVIRON, "not supported")
def test_environ(self):
--- psutil/tests/test_memory_leaks.py~ 2018-01-22 10:04:04.000000000 -0600
+++ psutil/tests/test_memory_leaks.py 2018-01-22 10:08:05.378651502 -0600
@@ -200,7 +200,7 @@
"pid", "as_dict", "children", "cpu_affinity", "cpu_percent",
"ionice", "is_running", "kill", "memory_info_ex", "memory_percent",
"nice", "oneshot", "parent", "rlimit", "send_signal", "suspend",
- "terminate", "wait"))
+ "terminate", "wait", "connections"))
for name in dir(psutil.Process):
if name.startswith('_'):
continue
--- psutil/tests/test_memory_leaks.py~ 2018-01-22 10:32:07.000000000 -0600
+++ psutil/tests/test_memory_leaks.py 2018-01-22 10:32:23.085998319 -0600
@@ -200,7 +200,7 @@
"pid", "as_dict", "children", "cpu_affinity", "cpu_percent",
"ionice", "is_running", "kill", "memory_info_ex", "memory_percent",
"nice", "oneshot", "parent", "rlimit", "send_signal", "suspend",
- "terminate", "wait", "connections"))
+ "terminate", "wait", "connections", "memory_maps"))
for name in dir(psutil.Process):
if name.startswith('_'):
continue
--- psutil/tests/test_memory_leaks.py~ 2018-01-22 10:32:51.000000000 -0600
+++ psutil/tests/test_memory_leaks.py 2018-01-22 10:34:06.757525147 -0600
@@ -344,11 +344,11 @@
self.execute(self.proc.open_files)
# OSX implementation is unbelievably slow
- @unittest.skipIf(OSX, "too slow on OSX")
- @unittest.skipIf(not HAS_MEMORY_MAPS, "not supported")
- @skip_if_linux()
- def test_memory_maps(self):
- self.execute(self.proc.memory_maps)
+# @unittest.skipIf(OSX, "too slow on OSX")
+# @unittest.skipIf(not HAS_MEMORY_MAPS, "not supported")
+# @skip_if_linux()
+# def test_memory_maps(self):
+# self.execute(self.proc.memory_maps)
@unittest.skipIf(not LINUX, "LINUX only")
@unittest.skipIf(not HAS_RLIMIT, "not supported")