diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-06-14 16:10:51 +0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-06-14 16:10:51 +0800 |
commit | 361681f45f3498ea702edc109c10d190b61067bf (patch) | |
tree | e2647abe030f560e3df048274697d1b5b45caae1 /psutil/tests/test_contracts.py | |
parent | 6e6141de9b822695989fcbd3cb73854ec8165f4c (diff) | |
download | psutil-connections-refactoring.tar.gz |
fix failing testconnections-refactoring
Diffstat (limited to 'psutil/tests/test_contracts.py')
-rwxr-xr-x | psutil/tests/test_contracts.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index ec86ba40..cb4a2b96 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -36,6 +36,7 @@ from psutil.tests import HAS_SENSORS_FANS from psutil.tests import HAS_SENSORS_TEMPERATURES from psutil.tests import is_namedtuple from psutil.tests import safe_rmpath +from psutil.tests import SKIP_SYSCONS from psutil.tests import TESTFN from psutil.tests import unittest from psutil.tests import VALID_PROC_STATUSES @@ -221,6 +222,7 @@ class TestSystem(unittest.TestCase): self.assertIsInstance(disk.fstype, str) self.assertIsInstance(disk.opts, str) + @unittest.skipIf(SKIP_SYSCONS, "requires root") def test_net_connections(self): with create_sockets(): ret = psutil.net_connections('all') |