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
693c104a
Kaydet (Commit)
693c104a
authored
Nis 17, 2019
tarafından
Lihua Zhao
Kaydeden (comit)
Victor Stinner
Nis 17, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-31904: Port test_resource to VxWorks (GH-12719)
Skip tests cases setting RLIMIT_FSIZE and RLIMIT_CPU on VxWorks.
üst
29545508
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
resource.rst
Doc/library/resource.rst
+2
-0
test_resource.py
Lib/test/test_resource.py
+4
-0
2019-04-08-09-24-36.bpo-31904.ab03ea.rst
...EWS.d/next/Tests/2019-04-08-09-24-36.bpo-31904.ab03ea.rst
+1
-0
No files found.
Doc/library/resource.rst
Dosyayı görüntüle @
693c104a
...
@@ -76,6 +76,8 @@ this module for those platforms.
...
@@ -76,6 +76,8 @@ this module for those platforms.
``setrlimit`` may also raise :exc:`error` if the underlying system call
``setrlimit`` may also raise :exc:`error` if the underlying system call
fails.
fails.
VxWorks only supports setting :data:`RLIMIT_NOFILE`.
.. function:: prlimit(pid, resource[, limits])
.. function:: prlimit(pid, resource[, limits])
Combines :func:`setrlimit` and :func:`getrlimit` in one function and
Combines :func:`setrlimit` and :func:`getrlimit` in one function and
...
...
Lib/test/test_resource.py
Dosyayı görüntüle @
693c104a
...
@@ -16,6 +16,8 @@ class ResourceTest(unittest.TestCase):
...
@@ -16,6 +16,8 @@ class ResourceTest(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
resource
.
setrlimit
)
self
.
assertRaises
(
TypeError
,
resource
.
setrlimit
)
self
.
assertRaises
(
TypeError
,
resource
.
setrlimit
,
42
,
42
,
42
)
self
.
assertRaises
(
TypeError
,
resource
.
setrlimit
,
42
,
42
,
42
)
@unittest.skipIf
(
sys
.
platform
==
"vxworks"
,
"setting RLIMIT_FSIZE is not supported on VxWorks"
)
def
test_fsize_ismax
(
self
):
def
test_fsize_ismax
(
self
):
try
:
try
:
(
cur
,
max
)
=
resource
.
getrlimit
(
resource
.
RLIMIT_FSIZE
)
(
cur
,
max
)
=
resource
.
getrlimit
(
resource
.
RLIMIT_FSIZE
)
...
@@ -110,6 +112,8 @@ class ResourceTest(unittest.TestCase):
...
@@ -110,6 +112,8 @@ class ResourceTest(unittest.TestCase):
pass
pass
# Issue 6083: Reference counting bug
# Issue 6083: Reference counting bug
@unittest.skipIf
(
sys
.
platform
==
"vxworks"
,
"setting RLIMIT_CPU is not supported on VxWorks"
)
def
test_setrusage_refcount
(
self
):
def
test_setrusage_refcount
(
self
):
try
:
try
:
limits
=
resource
.
getrlimit
(
resource
.
RLIMIT_CPU
)
limits
=
resource
.
getrlimit
(
resource
.
RLIMIT_CPU
)
...
...
Misc/NEWS.d/next/Tests/2019-04-08-09-24-36.bpo-31904.ab03ea.rst
0 → 100644
Dosyayı görüntüle @
693c104a
Port test_resource to VxWorks: skip tests cases setting RLIMIT_FSIZE and RLIMIT_CPU.
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