Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Sort results in test_cpu_affinity_all_combinations #1769
Conversation
Fix test_cpu_affinity_all_combinations to permit any CPU order
in results. This fixes test failure due to affinity being reported
out of order:
======================================================================
FAIL: psutil.tests.test_process.TestProcess.test_cpu_affinity_all_combinations
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/psutil/psutil/tests/test_process.py", line 940, in test_cpu_affinity_all_combinations
self.assertEqual(p.cpu_affinity(), combo)
AssertionError: Lists differ: [8, 1] != [1, 8]
First differing element 0:
8
1
- [8, 1]
+ [1, 8]
----------------------------------------------------------------------
|
Thank you! |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Fix test_cpu_affinity_all_combinations to permit any CPU order
in results. This fixes test failure due to affinity being reported
out of order: