summaryrefslogtreecommitdiff
path: root/psutil/tests/test_linux.py
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/tests/test_linux.py')
-rwxr-xr-xpsutil/tests/test_linux.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
index 5a48a445..97946a0b 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -1067,25 +1067,6 @@ class TestSystemDiskPartitions(unittest.TestCase):
finally:
psutil.PROCFS_PATH = "/proc"
- @unittest.skipIf(not os.path.exists('/proc/swaps'),
- "/proc/swaps not available")
- def test_swap(self):
- with open('/proc/swaps') as f:
- if not f.readline() or not f.readlines():
- raise self.skipTest("/proc/swaps is empty")
- types = [x.fstype for x in psutil.disk_partitions(all=False)]
- self.assertNotIn('swap', types)
- types = [x.fstype for x in psutil.disk_partitions(all=True)]
- self.assertIn('swap', types)
- for part in psutil.disk_partitions(all=True):
- if part.fstype == 'swap':
- assert os.path.exists(part.device), part
- self.assertIsNone(part.mountpoint)
- if part.opts:
- assert part.opts.startswith('priority=')
- prio = part.opts.split('=')[1]
- int(prio)
-
@unittest.skipIf(not LINUX, "LINUX only")
class TestSystemDiskIoCounters(unittest.TestCase):