diff options
author | Victor Stinner <vstinner@python.org> | 2023-11-03 23:53:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 23:53:18 (GMT) |
commit | 244e37b22a826eeb37bc057193bbff7138bc6ac3 (patch) | |
tree | 0b0a03203aa820c7e436d96d5a7d815f2190bc85 /Python/frame.c | |
parent | f21b23058e01515166a6b61fdea01864ad9c0572 (diff) | |
download | cpython-244e37b22a826eeb37bc057193bbff7138bc6ac3.zip cpython-244e37b22a826eeb37bc057193bbff7138bc6ac3.tar.gz cpython-244e37b22a826eeb37bc057193bbff7138bc6ac3.tar.bz2 |
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
Diffstat (limited to 'Python/frame.c')
0 files changed, 0 insertions, 0 deletions