e41954
diff --color -Nur psutil-release-5.8.0.orig/psutil/tests/test_linux.py psutil-release-5.8.0/psutil/tests/test_linux.py
e41954
--- psutil-release-5.8.0.orig/psutil/tests/test_linux.py	2020-12-18 16:45:00.000000000 -0800
e41954
+++ psutil-release-5.8.0/psutil/tests/test_linux.py	2021-01-10 15:38:31.104890945 -0800
e41954
@@ -661,14 +661,13 @@
e41954
             value = int(value.split('-')[1]) + 1
e41954
             self.assertEqual(psutil.cpu_count(), value)
e41954
 
e41954
-    @unittest.skipIf(not os.path.exists("/sys/devices/system/cpu"),
e41954
-                     "/sys/devices/system/cpu does not exist")
e41954
+    @unittest.skip("Unreliable on mock")
e41954
     def test_against_sysdev_cpu_num(self):
e41954
         ls = os.listdir("/sys/devices/system/cpu")
e41954
         count = len([x for x in ls if re.search(r"cpu\d+$", x) is not None])
e41954
         self.assertEqual(psutil.cpu_count(), count)
e41954
 
e41954
-    @unittest.skipIf(not which("nproc"), "nproc utility not available")
e41954
+    @unittest.skip("Unreliable on mock")
e41954
     def test_against_nproc(self):
e41954
         num = int(sh("nproc --all"))
e41954
         self.assertEqual(psutil.cpu_count(logical=True), num)
e41954
@@ -713,7 +712,7 @@
e41954
                 m.called
e41954
 
e41954
 
e41954
-@unittest.skipIf(not LINUX, "LINUX only")
e41954
+@unittest.skip("Unreliable in mock")
e41954
 class TestSystemCPUCountPhysical(PsutilTestCase):
e41954
 
e41954
     @unittest.skipIf(not which("lscpu"), "lscpu utility not available")
e41954
@@ -745,7 +744,7 @@
e41954
 @unittest.skipIf(not LINUX, "LINUX only")
e41954
 class TestSystemCPUFrequency(PsutilTestCase):
e41954
 
e41954
-    @unittest.skipIf(not HAS_CPU_FREQ, "not supported")
e41954
+    @unittest.skip("Unreliable in mock")
e41954
     def test_emulate_use_second_file(self):
e41954
         # https://github.com/giampaolo/psutil/issues/981
e41954
         def path_exists_mock(path):
e41954
@@ -759,7 +758,7 @@
e41954
                         create=True):
e41954
             assert psutil.cpu_freq()
e41954
 
e41954
-    @unittest.skipIf(not HAS_CPU_FREQ, "not supported")
e41954
+    @unittest.skip("Unreliable in mock")
e41954
     def test_emulate_use_cpuinfo(self):
e41954
         # Emulate a case where /sys/devices/system/cpu/cpufreq* does not
e41954
         # exist and /proc/cpuinfo is used instead.
e41954
@@ -888,7 +887,7 @@
e41954
                     self.assertEqual(freq.current, 200)
e41954
 
e41954
 
e41954
-@unittest.skipIf(not LINUX, "LINUX only")
e41954
+@unittest.skip("Unreliable in mock")
e41954
 class TestSystemCPUStats(PsutilTestCase):
e41954
 
e41954
     def test_ctx_switches(self):
e41954
@@ -2126,13 +2125,14 @@
e41954
         value = tuple(map(int, value.split()[1:4]))
e41954
         self.assertEqual(self.proc.gids(), value)
e41954
 
e41954
-    @retry_on_failure()
e41954
+    @unittest.skip("Unreliable in mock")
e41954
     def test_num_ctx_switches(self):
e41954
         value = self.read_status_file("voluntary_ctxt_switches:")
e41954
         self.assertEqual(self.proc.num_ctx_switches().voluntary, value)
e41954
         value = self.read_status_file("nonvoluntary_ctxt_switches:")
e41954
         self.assertEqual(self.proc.num_ctx_switches().involuntary, value)
e41954
 
e41954
+    @unittest.skip("Unreliable in mock")
e41954
     def test_cpu_affinity(self):
e41954
         value = self.read_status_file("Cpus_allowed_list:")
e41954
         if '-' in str(value):
e41954
diff --color -Nur psutil-release-5.8.0.orig/psutil/tests/test_misc.py psutil-release-5.8.0/psutil/tests/test_misc.py
e41954
--- psutil-release-5.8.0.orig/psutil/tests/test_misc.py	2020-12-18 16:45:00.000000000 -0800
e41954
+++ psutil-release-5.8.0/psutil/tests/test_misc.py	2021-01-10 15:38:31.104890945 -0800
e41954
@@ -355,7 +355,7 @@
e41954
 
e41954
     def test_setup_script(self):
e41954
         setup_py = os.path.join(ROOT_DIR, 'setup.py')
e41954
-        if CI_TESTING and not os.path.exists(setup_py):
e41954
+        if not os.path.exists(setup_py):
e41954
             return self.skipTest("can't find setup.py")
e41954
         module = import_module_by_path(setup_py)
e41954
         self.assertRaises(SystemExit, module.setup)
e41954
diff --color -Nur psutil-release-5.8.0.orig/psutil/tests/test_system.py psutil-release-5.8.0/psutil/tests/test_system.py
e41954
--- psutil-release-5.8.0.orig/psutil/tests/test_system.py	2020-12-18 16:45:00.000000000 -0800
e41954
+++ psutil-release-5.8.0/psutil/tests/test_system.py	2021-01-10 15:38:31.105890946 -0800
e41954
@@ -198,7 +198,7 @@
e41954
         self.assertGreater(bt, 0)
e41954
         self.assertLess(bt, time.time())
e41954
 
e41954
-    @unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
e41954
+    @unittest.skipIf(not psutil.users(), "unreliable on CI")
e41954
     def test_users(self):
e41954
         users = psutil.users()
e41954
         self.assertNotEqual(users, [])
e41954
@@ -510,7 +510,7 @@
e41954
             if not AIX and name in ('ctx_switches', 'interrupts'):
e41954
                 self.assertGreater(value, 0)
e41954
 
e41954
-    @unittest.skipIf(not HAS_CPU_FREQ, "not suported")
e41954
+    @unittest.skip("Unreliable in mock")
e41954
     def test_cpu_freq(self):
e41954
         def check_ls(ls):
e41954
             for nt in ls:
e41954
@@ -579,6 +579,7 @@
e41954
     def test_disk_usage_bytes(self):
e41954
         psutil.disk_usage(b'.')
e41954
 
e41954
+    @unittest.skip("unreliable on CI")
e41954
     def test_disk_partitions(self):
e41954
         def check_ntuple(nt):
e41954
             self.assertIsInstance(nt.device, str)
e41954
@@ -828,7 +829,7 @@
e41954
 
e41954
 class TestSensorsAPIs(PsutilTestCase):
e41954
 
e41954
-    @unittest.skipIf(not HAS_SENSORS_TEMPERATURES, "not supported")
e41954
+    @unittest.skip("Unreliable in mock")
e41954
     def test_sensors_temperatures(self):
e41954
         temps = psutil.sensors_temperatures()
e41954
         for name, entries in temps.items():
e41954
diff --color -Nur psutil-release-5.8.0.orig/psutil/tests/test_testutils.py psutil-release-5.8.0/psutil/tests/test_testutils.py
e41954
--- psutil-release-5.8.0.orig/psutil/tests/test_testutils.py	2020-12-18 16:45:00.000000000 -0800
e41954
+++ psutil-release-5.8.0/psutil/tests/test_testutils.py	2021-01-10 15:48:14.240695423 -0800
e41954
@@ -364,7 +364,7 @@
e41954
         self.assertRaises(ValueError, self.execute, lambda: 0, retries=-1)
e41954
 
e41954
     @retry_on_failure()
e41954
-    @unittest.skipIf(CI_TESTING, "skipped on CI")
e41954
+    @unittest.skip("Unreliable in mock")
e41954
     def test_leak_mem(self):
e41954
         ls = []
e41954