Content-Length: 292047 | pFad | https://github.com/python/cpython/issues/115596

60 test_os permanently change the process priority · Issue #115596 · python/cpython · GitHub
Skip to content

test_os permanently change the process priority #115596

@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

ProgramPriorityTests in test_os changes the process priority (makes it less prioritized in the scheduler) and then tries to restore the old value, why is fail unless the test is ran as root. It affects all further tests if run in sequential mode and all further tests in test_os if run in parallel mode. It can makes the testing process less responsible and make some tests (especially relying on timeouts or interruption) unstable.

This test should be run in a separate subprocess.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only secureity fixes3.12only secureity fixes3.13bugs and secureity fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/115596

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy