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
9e29fc58
Kaydet (Commit)
9e29fc58
authored
Eki 13, 2004
tarafından
Fredrik Lundh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't spend quite as much time looking for leaks on Windows, where
it's rather expensive to create new processes.
üst
59c05595
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test_subprocess.py
Lib/test/test_subprocess.py
+4
-2
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
9e29fc58
...
...
@@ -338,10 +338,12 @@ class ProcessTestCase(unittest.TestCase):
# Interpreter without universal newline support
self
.
assertEqual
(
stdout
,
"line1
\n
line2
\r
line3
\r\n
line4
\r\n
line5
\n
line6"
)
# XXX test_no_leaking takes > a minute to run on a high-end WinXP Pro box
def
test_no_leaking
(
self
):
# Make sure we leak no resources
for
i
in
range
(
1026
):
max_handles
=
1026
# too much for most UNIX systems
if
mswindows
:
max_handles
=
65
# a full test is too slow on Windows
for
i
in
range
(
max_handles
):
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
"import sys;sys.stdout.write(sys.stdin.read())"
],
stdin
=
subprocess
.
PIPE
,
...
...
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