diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2018-10-19 14:27:56 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2018-10-19 14:27:56 +0200 |
commit | fbece8e45991e8cc070bfd5e9efcd4974227abcd (patch) | |
tree | 043ad8d23109a3c27d52349626f83c004d378498 /psutil/tests/test_system.py | |
parent | 6db8d2e41dc67621eae9d8eeab3c39fef7e2ddf4 (diff) | |
download | psutil-fbece8e45991e8cc070bfd5e9efcd4974227abcd.tar.gz |
fix #1307: [Linux] disk_partitions() does not honour PROCFS_PATH
Diffstat (limited to 'psutil/tests/test_system.py')
-rwxr-xr-x | psutil/tests/test_system.py | 6 |
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) |