Issue #12196: Add PIPE_MAX_SIZE to test.support, constant larger than the

underlying OS pipe buffer size.
This commit is contained in:
Charles-François Natali 2011-05-29 16:36:44 +02:00
parent b30eed981f
commit 2d51721832
3 changed files with 13 additions and 9 deletions

View file

@ -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.