]> granicus.if.org Git - python/commitdiff
Use a larger amount of data for the interrupted_write tests so that
authorGregory P. Smith <greg@krypto.org>
Wed, 20 Mar 2013 06:21:03 +0000 (23:21 -0700)
committerGregory P. Smith <greg@krypto.org>
Wed, 20 Mar 2013 06:21:03 +0000 (23:21 -0700)
they work properly on systems configured with large pipe buffers.

Lib/test/test_io.py

index 3769a028f819fc7df232c059d1be2e0ddc5a4635..5cd28f5bea5325e7b27fe57915eec0cb678a441f 100644 (file)
@@ -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.