summaryrefslogtreecommitdiff
path: root/psutil/tests/test_system.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2018-10-19 14:27:56 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2018-10-19 14:27:56 +0200
commitfbece8e45991e8cc070bfd5e9efcd4974227abcd (patch)
tree043ad8d23109a3c27d52349626f83c004d378498 /psutil/tests/test_system.py
parent6db8d2e41dc67621eae9d8eeab3c39fef7e2ddf4 (diff)
downloadpsutil-fbece8e45991e8cc070bfd5e9efcd4974227abcd.tar.gz
fix #1307: [Linux] disk_partitions() does not honour PROCFS_PATH
Diffstat (limited to 'psutil/tests/test_system.py')
-rwxr-xr-xpsutil/tests/test_system.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
index 8b07caff..7cc678f0 100755
--- a/psutil/tests/test_system.py
+++ b/psutil/tests/test_system.py
@@ -522,11 +522,7 @@ class TestSystemAPIs(unittest.TestCase):
if err.errno not in (errno.EPERM, errno.EACCES):
raise
else:
- if SUNOS or TRAVIS:
- # on solaris apparently mount points can also be files
- assert os.path.exists(disk.mountpoint), disk
- else:
- assert os.path.isdir(disk.mountpoint), disk
+ assert os.path.exists(disk.mountpoint), disk
self.assertIsInstance(disk.fstype, str)
self.assertIsInstance(disk.opts, str)