Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e1a1674e
Kaydet (Commit)
e1a1674e
authored
Nis 24, 2013
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #17835: Fix test_io when the default OS pipe buffer size is larger than one million bytes.
üst
6ae46673
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
support.py
Lib/test/support.py
+6
-4
test_io.py
Lib/test/test_io.py
+2
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/support.py
Dosyayı görüntüle @
e1a1674e
...
...
@@ -573,10 +573,12 @@ def _is_ipv6_enabled():
IPV6_ENABLED
=
_is_ipv6_enabled
()
# A constant likely larger than the underlying OS pipe buffer size.
# 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
# A constant likely larger than the underlying OS pipe buffer size, to
# make writes blocking.
# Windows limit seems to be around 512 B, and many Unix kernels have a
# 64 KiB pipe buffer size or 16 * PAGE_SIZE: take a few megs to be sure.
# (see issue #17835 for a discussion of this number).
PIPE_MAX_SIZE
=
4
*
1024
*
1024
+
1
# decorator for skipping tests on non-IEEE 754 platforms
...
...
Lib/test/test_io.py
Dosyayı görüntüle @
e1a1674e
...
...
@@ -3061,7 +3061,7 @@ class SignalsTest(unittest.TestCase):
# The buffered IO layer must check for pending signal
# handlers, which in this case will invoke alarm_interrupt().
self
.
assertRaises
(
ZeroDivisionError
,
wio
.
write
,
item
*
(
support
.
PIPE_MAX_SIZE
//
len
(
item
)))
wio
.
write
,
item
*
(
support
.
PIPE_MAX_SIZE
//
len
(
item
)
+
1
))
t
.
join
()
# We got one byte, get another one and check that it isn't a
# repeat of the first one.
...
...
@@ -3160,7 +3160,7 @@ class SignalsTest(unittest.TestCase):
select
=
support
.
import_module
(
"select"
)
# A quantity that exceeds the buffer size of an anonymous pipe's
# write end.
N
=
1024
*
1024
N
=
support
.
PIPE_MAX_SIZE
r
,
w
=
os
.
pipe
()
fdopen_kwargs
[
"closefd"
]
=
False
# We need a separate thread to read from the pipe and allow the
...
...
Misc/NEWS
Dosyayı görüntüle @
e1a1674e
...
...
@@ -132,6 +132,9 @@ IDLE
Tests
-----
-
Issue
#
17835
:
Fix
test_io
when
the
default
OS
pipe
buffer
size
is
larger
than
one
million
bytes
.
-
Issue
#
17065
:
Use
process
-
unique
key
for
winreg
tests
to
avoid
failures
if
test
is
run
multiple
times
in
parallel
(
eg
:
on
a
buildbot
host
).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment