]> granicus.if.org Git - python/commitdiff
Issue #25122: optimize test_eintr
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 15 Sep 2015 21:59:00 +0000 (23:59 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 15 Sep 2015 21:59:00 +0000 (23:59 +0200)
Fix test_write(): copy support.PIPE_MAX_SIZE bytes, not support.PIPE_MAX_SIZE*3
bytes.

Lib/test/eintrdata/eintr_tester.py

index e1330a71b1b82c8585085459c46db30f755b7b44..24e809a2a44a193a54e54243a9447e29b5bc214e 100644 (file)
@@ -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()',