mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #12196: Add PIPE_MAX_SIZE to test.support, constant larger than the
underlying OS pipe buffer size.
This commit is contained in:
parent
b30eed981f
commit
2d51721832
3 changed files with 13 additions and 9 deletions
|
@ -2683,7 +2683,7 @@ class SignalsTest(unittest.TestCase):
|
|||
# The buffered IO layer must check for pending signal
|
||||
# handlers, which in this case will invoke alarm_interrupt().
|
||||
self.assertRaises(ZeroDivisionError,
|
||||
wio.write, item * (1024 * 1024))
|
||||
wio.write, item * (support.PIPE_MAX_SIZE // len(item)))
|
||||
t.join()
|
||||
# We got one byte, get another one and check that it isn't a
|
||||
# repeat of the first one.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue