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
58e317ba
Kaydet (Commit)
58e317ba
authored
Mar 15, 2011
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 1579808ef25b
üst
37308923
de3909da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
test_subprocess.py
Lib/test/test_subprocess.py
+5
-2
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
58e317ba
...
@@ -11,6 +11,7 @@ import re
...
@@ -11,6 +11,7 @@ import re
import
sysconfig
import
sysconfig
import
warnings
import
warnings
import
select
import
select
import
shutil
try
:
try
:
import
gc
import
gc
except
ImportError
:
except
ImportError
:
...
@@ -546,11 +547,12 @@ class ProcessTestCase(BaseTestCase):
...
@@ -546,11 +547,12 @@ class ProcessTestCase(BaseTestCase):
else
:
else
:
max_handles
=
2050
# too much for (at least some) Windows setups
max_handles
=
2050
# too much for (at least some) Windows setups
handles
=
[]
handles
=
[]
tmpdir
=
tempfile
.
mkdtemp
()
try
:
try
:
for
i
in
range
(
max_handles
):
for
i
in
range
(
max_handles
):
try
:
try
:
handles
.
append
(
os
.
open
(
support
.
TESTFN
,
tmpfile
=
os
.
path
.
join
(
tmpdir
,
support
.
TESTFN
)
os
.
O_WRONLY
|
os
.
O_CREAT
))
handles
.
append
(
os
.
open
(
tmpfile
,
os
.
O_WRONLY
|
os
.
O_CREAT
))
except
OSError
as
e
:
except
OSError
as
e
:
if
e
.
errno
!=
errno
.
EMFILE
:
if
e
.
errno
!=
errno
.
EMFILE
:
raise
raise
...
@@ -575,6 +577,7 @@ class ProcessTestCase(BaseTestCase):
...
@@ -575,6 +577,7 @@ class ProcessTestCase(BaseTestCase):
finally
:
finally
:
for
h
in
handles
:
for
h
in
handles
:
os
.
close
(
h
)
os
.
close
(
h
)
shutil
.
rmtree
(
tmpdir
)
def
test_list2cmdline
(
self
):
def
test_list2cmdline
(
self
):
self
.
assertEqual
(
subprocess
.
list2cmdline
([
'a b c'
,
'd'
,
'e'
]),
self
.
assertEqual
(
subprocess
.
list2cmdline
([
'a b c'
,
'd'
,
'e'
]),
...
...
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