aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-09-05 17:56:30 +0300
committerGitHub <noreply@github.com>2023-09-05 17:56:30 +0300
commit1e0d62793a84001e92f1c80b511d3a212b435acc (patch)
tree0735827fe13611176e9dc41cdacde06dba79be7b /Lib/test/test_io.py
parentf980cc19b9cafc09ef21e906871f810a1c89e62f (diff)
downloadcpython-1e0d62793a84001e92f1c80b511d3a212b435acc.tar.gz
cpython-1e0d62793a84001e92f1c80b511d3a212b435acc.zip
gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480)
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 6976a64bf77..022cf21a470 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -4468,10 +4468,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')
@@ -4645,11 +4647,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")
@@ -4723,10 +4727,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")