diff options
author | Charles-François Natali <neologix@free.fr> | 2011-05-29 14:36:44 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-05-29 14:36:44 (GMT) |
commit | 2d517218320af6f752eaf1fbd96466e8d13d2d20 (patch) | |
tree | 5267963086203ea7d18b8bcca1d9969e1420c021 /Lib/test/test_io.py | |
parent | b30eed981f54711d0a27ced68e15b8a5dd9934bc (diff) | |
download | cpython-2d517218320af6f752eaf1fbd96466e8d13d2d20.zip cpython-2d517218320af6f752eaf1fbd96466e8d13d2d20.tar.gz cpython-2d517218320af6f752eaf1fbd96466e8d13d2d20.tar.bz2 |
Issue #12196: Add PIPE_MAX_SIZE to test.support, constant larger than the
underlying OS pipe buffer size.
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index c0dc6ec..0ffb4a1 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -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. |