From: Gregory P. Smith Date: Wed, 20 Mar 2013 06:21:03 +0000 (-0700) Subject: Use a larger amount of data for the interrupted_write tests so that X-Git-Tag: v2.7.4rc1~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c87ad07bd3f38270a5b8c79d30c831c90ef3963;p=python Use a larger amount of data for the interrupted_write tests so that they work properly on systems configured with large pipe buffers. --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 3769a028f8..5cd28f5bea 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -2880,7 +2880,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 * (3 * 1000 * 1000)) t.join() # We got one byte, get another one and check that it isn't a # repeat of the first one.