Skip to content

Commit

Permalink
#1594: set a limit for eligible CPUs combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Sep 26, 2019
1 parent 5a4c9a2 commit 0c5e704
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions psutil/tests/test_process.py
Expand Up @@ -940,6 +940,8 @@ def test_cpu_affinity_all_combinations(self):
self.addCleanup(p.cpu_affinity, initial)

# All possible CPU set combinations.
if len(initial) > 12:
initial = initial[:12] # ...otherwise it will take forever
combos = []
for l in range(0, len(initial) + 1):
for subset in itertools.combinations(initial, l):
Expand Down

0 comments on commit 0c5e704

Please sign in to comment.