mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.11] gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) (GH-108924)
(cherry picked from commit 1e0d62793a)
This commit is contained in:
parent
4e5fd6dc14
commit
cf19e8ea3a
18 changed files with 316 additions and 3 deletions
|
|
@ -8,7 +8,7 @@
|
|||
import time
|
||||
import unittest
|
||||
from test.support import (
|
||||
cpython_only, requires_subprocess, requires_working_socket
|
||||
cpython_only, requires_subprocess, requires_working_socket, requires_resource
|
||||
)
|
||||
from test.support import threading_helper
|
||||
from test.support.os_helper import TESTFN
|
||||
|
|
@ -124,6 +124,7 @@ def fileno(self):
|
|||
# select(), modified to use poll() instead.
|
||||
|
||||
@requires_subprocess()
|
||||
@requires_resource('walltime')
|
||||
def test_poll2(self):
|
||||
cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done'
|
||||
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue