]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-114911: Add CPUStopwatch test helper (GH-114912)
authorPetr Viktorin <encukou@gmail.com>
Wed, 28 Feb 2024 11:53:48 +0000 (12:53 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 11:53:48 +0000 (12:53 +0100)
commit7acf1fb5a70776429bd99e741d69471eb2d1c1bb
tree4b2f0bd7f2aaa03f84f3b77638de09eac892f150
parent3b63d0769f49171f53e9cecc686fa01a383bd4b1
gh-114911: Add CPUStopwatch test helper (GH-114912)

A few of our tests measure the time of CPU-bound operation, mainly
to avoid quadratic or worse behaviour.
Add a helper to ignore GC and time spent in other processes.
Lib/test/support/__init__.py
Lib/test/test_int.py
Lib/test/test_re.py