mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Replace the "compiler" resource with the more generic "cpu", so
as to mark CPU-heavy tests.
This commit is contained in:
parent
3fbfea1fae
commit
5bc4fa7a49
4 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue