mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
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.
This commit is contained in:
parent
620e875df2
commit
91110f5e55
2 changed files with 8 additions and 5 deletions
|
@ -574,9 +574,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue