summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-15 23:59:00 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-09-15 23:59:00 +0200
commit1e0f8ecdd8a4fb1fa21f4da1a8849ffd42b966f2 (patch)
tree5d0b758d77ea9ab5fbe6ad198eb761802038b877
parent3731bbe8b10f7f31240fbffe7d9617365f7814dc (diff)
downloadcpython-git-1e0f8ecdd8a4fb1fa21f4da1a8849ffd42b966f2.tar.gz
Issue #25122: optimize test_eintr
Fix test_write(): copy support.PIPE_MAX_SIZE bytes, not support.PIPE_MAX_SIZE*3 bytes.
-rw-r--r--Lib/test/eintrdata/eintr_tester.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/eintrdata/eintr_tester.py b/Lib/test/eintrdata/eintr_tester.py
index e1330a71b1..24e809a2a4 100644
--- a/Lib/test/eintrdata/eintr_tester.py
+++ b/Lib/test/eintrdata/eintr_tester.py
@@ -144,14 +144,14 @@ class OSEINTRTest(EINTRBaseTest):
# rd closed explicitly by parent
# we must write enough data for the write() to block
- data = b"xyz" * support.PIPE_MAX_SIZE
+ data = b"x" * support.PIPE_MAX_SIZE
code = '\n'.join((
'import io, os, sys, time',
'',
'rd = int(sys.argv[1])',
'sleep_time = %r' % self.sleep_time,
- 'data = b"xyz" * %s' % support.PIPE_MAX_SIZE,
+ 'data = b"x" * %s' % support.PIPE_MAX_SIZE,
'data_len = len(data)',
'',
'# let the parent block on write()',