diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-02 23:22:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 23:22:33 (GMT) |
commit | dcaacd906638edbc66cc84fa651163dc7a743070 (patch) | |
tree | 69a416280c70c78c98656ec8cdb8d48059d46a12 /Lib/test/test_trace.py | |
parent | 7269916cd7b89b5e6f20bfe83ebe1038bda56b4b (diff) | |
download | cpython-dcaacd906638edbc66cc84fa651163dc7a743070.zip cpython-dcaacd906638edbc66cc84fa651163dc7a743070.tar.gz cpython-dcaacd906638edbc66cc84fa651163dc7a743070.tar.bz2 |
[3.12] gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) (#108798)
gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421)
Only mark tests which spend significant system or user time,
by itself or in subprocesses.
(cherry picked from commit f3ba0a74cd50274acdcd592d4ce8395b92492b7c)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/test_trace.py')
-rw-r--r-- | Lib/test/test_trace.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index 73339eb..d1ef005 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -1,7 +1,7 @@ import os from pickle import dump import sys -from test.support import captured_stdout +from test.support import captured_stdout, requires_resource from test.support.os_helper import (TESTFN, rmtree, unlink) from test.support.script_helper import assert_python_ok, assert_python_failure import textwrap @@ -367,6 +367,7 @@ class TestCoverage(unittest.TestCase): r = tracer.results() r.write_results(show_missing=True, summary=True, coverdir=TESTFN) + @requires_resource('cpu') def test_coverage(self): tracer = trace.Trace(trace=0, count=1) with captured_stdout() as stdout: |