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
bb484652
Kaydet (Commit)
bb484652
authored
Ara 02, 2002
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
On Max OSX, try increasing the stack limit to 2048 so test_re and
test_sre won't die with a SegFault.
üst
5f7c4b34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
regrtest.py
Lib/test/regrtest.py
+16
-0
No files found.
Lib/test/regrtest.py
Dosyayı görüntüle @
bb484652
...
@@ -83,6 +83,22 @@ if sys.maxint > 0x7fffffff:
...
@@ -83,6 +83,22 @@ if sys.maxint > 0x7fffffff:
warnings
.
filterwarnings
(
"ignore"
,
"hex/oct constants"
,
FutureWarning
,
warnings
.
filterwarnings
(
"ignore"
,
"hex/oct constants"
,
FutureWarning
,
"<string>"
)
"<string>"
)
# MacOSX (a.k.a. Darwin) has a default stack size that is too small
# for deeply recursive regular expressions. We see this as crashes in
# the Python test suite when running test_re.py and test_sre.py. The
# fix is to set the stack limit to 2048.
# This approach may also be useful for other Unixy platforms that
# suffer from small default stack limits.
if
sys
.
platform
==
'darwin'
:
try
:
import
resource
except
ImportError
:
pass
else
:
soft
,
hard
=
resource
.
getrlimit
(
resource
.
RLIMIT_STACK
)
newsoft
=
min
(
hard
,
max
(
soft
,
1024
*
2048
))
resource
.
setrlimit
(
resource
.
RLIMIT_STACK
,
(
newsoft
,
hard
))
from
test
import
test_support
from
test
import
test_support
RESOURCE_NAMES
=
(
'curses'
,
'largefile'
,
'network'
,
'bsddb'
)
RESOURCE_NAMES
=
(
'curses'
,
'largefile'
,
'network'
,
'bsddb'
)
...
...
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