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
da0f2a1f
Kaydet (Commit)
da0f2a1f
authored
Ara 05, 2015
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #25764: Attempt to debug and skip OS X setrlimit() failure
üst
154228fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
test_subprocess.py
Lib/test/test_subprocess.py
+7
-1
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
da0f2a1f
...
...
@@ -1516,10 +1516,16 @@ class POSIXProcessTestCase(BaseTestCase):
# The internal code did not preserve the previous exception when
# re-enabling garbage collection
try
:
from
resource
import
getrlimit
,
setrlimit
,
RLIMIT_NPROC
from
resource
import
getrlimit
,
setrlimit
,
RLIMIT_NPROC
,
RLIM_INFINITY
except
ImportError
as
err
:
self
.
skipTest
(
err
)
# RLIMIT_NPROC is specific to Linux and BSD
limits
=
getrlimit
(
RLIMIT_NPROC
)
try
:
setrlimit
(
RLIMIT_NPROC
,
limits
)
except
ValueError
as
err
:
# Seems to happen on AMD64 Snow Leop and x86-64 Yosemite buildbots
print
(
f
"Setting NPROC to {limits!r}: {err!r}, RLIM_INFINITY={RLIM_INFINITY!r}"
)
self
.
skipTest
(
"Setting existing NPROC limit failed"
)
[
_
,
hard
]
=
limits
setrlimit
(
RLIMIT_NPROC
,
(
0
,
hard
))
self
.
addCleanup
(
setrlimit
,
RLIMIT_NPROC
,
limits
)
...
...
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