summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-09-03 12:21:43 (GMT)
committerGitHub <noreply@github.com>2023-09-03 12:21:43 (GMT)
commit509bb61977cc8a4487efd3f9cdd63d9f7b86be62 (patch)
tree3034fe30f334247df55fe4c27e4a516b0c55bec7 /Lib/test/test_io.py
parent9c995abd780f3740dcd23ad85b78f2df5b4cdbaf (diff)
downloadcpython-509bb61977cc8a4487efd3f9cdd63d9f7b86be62.zip
cpython-509bb61977cc8a4487efd3f9cdd63d9f7b86be62.tar.gz
cpython-509bb61977cc8a4487efd3f9cdd63d9f7b86be62.tar.bz2
Reorder some test's decorators (GH-108804)
For example, do not demand the 'cpu' resource if the test cannot be run due to non-working threads.
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 26ae40d..6976a64 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -1541,8 +1541,8 @@ class BufferedReaderTest(unittest.TestCase, CommonBufferedTests):
self.assertEqual(b"abcdefg", bufio.read())
- @support.requires_resource('cpu')
@threading_helper.requires_working_threading()
+ @support.requires_resource('cpu')
def test_threads(self):
try:
# Write out many bytes with exactly the same number of 0's,
@@ -1930,8 +1930,8 @@ class BufferedWriterTest(unittest.TestCase, CommonBufferedTests):
f.truncate()
self.assertEqual(f.tell(), buffer_size + 2)
- @support.requires_resource('cpu')
@threading_helper.requires_working_threading()
+ @support.requires_resource('cpu')
def test_threads(self):
try:
# Write out many bytes from many threads and test they were