summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-20 06:27:09 (GMT)
committerGregory P. Smith <greg@krypto.org>2013-03-20 06:27:09 (GMT)
commit016b9e38f7b5362df21526fce4c7e675de50bebf (patch)
tree2c8ebe025766cb6509a13605a4ec8b567ab91471 /Lib/test/support.py
parenteddb0a7884e7b9edaeed8c5f6b250c40ece403ad (diff)
parent91110f5e5523b578cb74bf81473eb858f86e5338 (diff)
downloadcpython-016b9e38f7b5362df21526fce4c7e675de50bebf.zip
cpython-016b9e38f7b5362df21526fce4c7e675de50bebf.tar.gz
cpython-016b9e38f7b5362df21526fce4c7e675de50bebf.tar.bz2
Use a larger amount of data for tests such as the interrupted_write
tests that depend on filling up an OS pipe so that they work properly on systems configured with large pipe buffers. Also a subprocess docstring update that i forgot was in my client when i did the original 3.3 commit... easier to just leave that in here with this one than go back and undo/redo.
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index e6724a8..d089767 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -576,9 +576,9 @@ IPV6_ENABLED = _is_ipv6_enabled()
# A constant likely larger than the underlying OS pipe buffer size.
-# Windows limit seems to be around 512B, and most Unix kernels have a 64K pipe
-# buffer size: take 1M to be sure.
-PIPE_MAX_SIZE = 1024 * 1024
+# Windows limit seems to be around 512B, and many Unix kernels have a 64K pipe
+# buffer size or 16*PAGE_SIZE: take a few megs to be sure. This
+PIPE_MAX_SIZE = 3 * 1000 * 1000
# decorator for skipping tests on non-IEEE 754 platforms