summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-09-23 02:32:18 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-09-23 02:32:18 +0200
commit9865a46c26477e2e88e13645941106c270dde3b2 (patch)
tree1c597813c610c2e48f8ade46f1149f5184435a70
parenta5beb29488fe75c858d30a00044cbd29d3ed3d8b (diff)
downloadpsutil-9865a46c26477e2e88e13645941106c270dde3b2.tar.gz
fix travis
-rw-r--r--psutil/tests/test_memory_leaks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/tests/test_memory_leaks.py b/psutil/tests/test_memory_leaks.py
index 846c20ad..b7eabffb 100644
--- a/psutil/tests/test_memory_leaks.py
+++ b/psutil/tests/test_memory_leaks.py
@@ -255,7 +255,8 @@ class TestProcessObjectLeaks(Base):
def test_cpu_affinity_set(self):
affinity = psutil.Process().cpu_affinity()
self.execute('cpu_affinity', affinity)
- self.execute_w_exc(ValueError, 'cpu_affinity', [-1])
+ if not TRAVIS:
+ self.execute_w_exc(ValueError, 'cpu_affinity', [-1])
@skip_if_linux()
def test_open_files(self):