mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +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
|
@ -4380,10 +4380,12 @@ class CMiscIOTest(MiscIOTest):
|
|||
self.assertFalse(err.strip('.!'))
|
||||
|
||||
@threading_helper.requires_working_threading()
|
||||
@support.requires_resource('walltime')
|
||||
def test_daemon_threads_shutdown_stdout_deadlock(self):
|
||||
self.check_daemon_threads_shutdown_deadlock('stdout')
|
||||
|
||||
@threading_helper.requires_working_threading()
|
||||
@support.requires_resource('walltime')
|
||||
def test_daemon_threads_shutdown_stderr_deadlock(self):
|
||||
self.check_daemon_threads_shutdown_deadlock('stderr')
|
||||
|
||||
|
@ -4557,11 +4559,13 @@ class SignalsTest(unittest.TestCase):
|
|||
os.close(r)
|
||||
|
||||
@requires_alarm
|
||||
@support.requires_resource('walltime')
|
||||
def test_interrupted_read_retry_buffered(self):
|
||||
self.check_interrupted_read_retry(lambda x: x.decode('latin1'),
|
||||
mode="rb")
|
||||
|
||||
@requires_alarm
|
||||
@support.requires_resource('walltime')
|
||||
def test_interrupted_read_retry_text(self):
|
||||
self.check_interrupted_read_retry(lambda x: x,
|
||||
mode="r", encoding="latin1")
|
||||
|
@ -4635,10 +4639,12 @@ class SignalsTest(unittest.TestCase):
|
|||
raise
|
||||
|
||||
@requires_alarm
|
||||
@support.requires_resource('walltime')
|
||||
def test_interrupted_write_retry_buffered(self):
|
||||
self.check_interrupted_write_retry(b"x", mode="wb")
|
||||
|
||||
@requires_alarm
|
||||
@support.requires_resource('walltime')
|
||||
def test_interrupted_write_retry_text(self):
|
||||
self.check_interrupted_write_retry("x", mode="w", encoding="latin1")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue