diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-10-06 14:02:17 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-10-06 14:02:17 +0200 |
commit | 241109c51a02709612ba275e410532ac06ea3b65 (patch) | |
tree | d0a6a01cb420c4a3ce2ddbf4293e69a3b4e1f1ce | |
parent | f6b064e930ad771187f2fefb1fdfefe892d76521 (diff) | |
download | psutil-241109c51a02709612ba275e410532ac06ea3b65.tar.gz |
investigate travis failure
-rwxr-xr-x | psutil/tests/test_process.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index fab3a421..bf0ca6ec 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -870,6 +870,9 @@ class TestProcess(unittest.TestCase): # CPUs on get): # AssertionError: Lists differ: [0, 1, 2, 3, 4, 5, 6, ... != [0] for n in all_cpus: + # XXX + if hasattr(os, "sched_setaffinity"): + os.sched_setaffinity(os.getpid(), [n]) try: p.cpu_affinity([n]) except ValueError as err: |