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
5cf791b0
Kaydet (Commit)
5cf791b0
authored
Ara 11, 2015
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #25764: Skip fork failure test when run as root
üst
b82032f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test_subprocess.py
Lib/test/test_subprocess.py
+6
-2
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
5cf791b0
...
...
@@ -1525,10 +1525,14 @@ class POSIXProcessTestCase(BaseTestCase):
[
_
,
hard
]
=
limits
setrlimit
(
RLIMIT_NPROC
,
(
0
,
hard
))
self
.
addCleanup
(
setrlimit
,
RLIMIT_NPROC
,
limits
)
# Forking should raise EAGAIN, translated to BlockingIOError
with
self
.
assertRaises
(
BlockingIOError
):
try
:
subprocess
.
call
([
sys
.
executable
,
'-c'
,
''
],
preexec_fn
=
lambda
:
None
)
except
BlockingIOError
:
# Forking should raise EAGAIN, translated to BlockingIOError
pass
else
:
self
.
skipTest
(
'RLIMIT_NPROC had no effect; probably superuser'
)
def
test_args_string
(
self
):
# args is a string
...
...
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