summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-14 15:34:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-14 15:34:31 (GMT)
commit5bc4fa7a4947a39cbfdd3dd2ea1019bfa0f93085 (patch)
tree2b4e69f9b4e1f13c81b2babc3e5462438b7f7d41 /Lib/test/test_io.py
parent3fbfea1fae509bebf89728c7f8c61b39ab69e489 (diff)
downloadcpython-5bc4fa7a4947a39cbfdd3dd2ea1019bfa0f93085.zip
cpython-5bc4fa7a4947a39cbfdd3dd2ea1019bfa0f93085.tar.gz
cpython-5bc4fa7a4947a39cbfdd3dd2ea1019bfa0f93085.tar.bz2
Replace the "compiler" resource with the more generic "cpu", so
as to mark CPU-heavy tests.
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index dfddfb5..8784e34 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -837,6 +837,7 @@ class BufferedReaderTest(unittest.TestCase, CommonBufferedTests):
self.assertEquals(b"abcdefg", bufio.read())
@unittest.skipUnless(threading, 'Threading required for this test.')
+ @support.requires_resource('cpu')
def test_threads(self):
try:
# Write out many bytes with exactly the same number of 0's,
@@ -1105,6 +1106,7 @@ class BufferedWriterTest(unittest.TestCase, CommonBufferedTests):
self.assertEqual(f.read(), b"abc")
@unittest.skipUnless(threading, 'Threading required for this test.')
+ @support.requires_resource('cpu')
def test_threads(self):
try:
# Write out many bytes from many threads and test they were