gh-109649: Fix test_os.test_process_cpu_count_affinity() (#111689)
When CPUs are isolated on Linux, os.process_cpu_count() is smaller than os.cpu_count(). Fix the test for this case. Example with "isolcpus=5,11 rcu_nocbs=5,11" options passed to a Linux command line to isolated two logical CPUs: $ ./python -c 'import os; print(os.process_cpu_count(), "/", os.cpu_count())' 10 / 12
V
Victor Stinner committed
244e37b22a826eeb37bc057193bbff7138bc6ac3
Parent: f21b230
Committed by GitHub <noreply@github.com>
on 11/3/2023, 11:53:18 PM