summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-10-06 16:31:00 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-10-06 16:31:00 +0200
commitad4b22f51b064c4dcc07f3f3c019a46c63e35119 (patch)
treec7d2d1d9cc1bfc7e9be5d27f0ed1d15ad3cc84b5
parent5e33068e2a515efe5a434a7771b316b61519cc2d (diff)
downloadpsutil-ad4b22f51b064c4dcc07f3f3c019a46c63e35119.tar.gz
investigat travis failure
-rwxr-xr-xpsutil/tests/test_process.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index 86c7760a..9f9ff17b 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -872,7 +872,8 @@ class TestProcess(unittest.TestCase):
# XXX
print("cpu_count = %s" % psutil.cpu_count())
print("all_cpus = %s" % all_cpus)
- for n in all_cpus:
+ print("initial affinity = %s" % initial)
+ for n in all_cpus if not TRAVIS else initial:
print(n)
if hasattr(os, "sched_setaffinity"):
os.sched_setaffinity(os.getpid(), [n])