diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-06-15 14:56:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-15 14:56:27 +0300 |
commit | e5d67f1e31381d28b24f6e1c0f8388d9bf0bfc5f (patch) | |
tree | 372af80a729cbe0871dac49360b63bdd3ebc7a06 /Lib/test | |
parent | 30cac20101717e7cbb13db470787f8437bd98b04 (diff) | |
download | cpython-git-e5d67f1e31381d28b24f6e1c0f8388d9bf0bfc5f.tar.gz |
[3.7] bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback mode. (GH-14075). (GH-14103)
(cherry picked from commit ef2152354f03a165c5e3adb53e2276934fabd50a)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 9466111b8e..d2c1d7c8a6 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -2117,7 +2117,8 @@ class SubprocessTestsMixin: class SendfileBase: - DATA = b"SendfileBaseData" * (1024 * 8) # 128 KiB + # 128 KiB plus small unaligned to buffer chunk + DATA = b"SendfileBaseData" * (1024 * 8 + 1) # Reduce socket buffer size to test on relative small data sets. BUF_SIZE = 4 * 1024 # 4 KiB |