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
df8adcd7
Kaydet (Commit)
df8adcd7
authored
Ara 11, 2001
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Ignore SIGXFSZ. Fixes #490453.
üst
1d3e6c15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
test_largefile.py
Lib/test/test_largefile.py
+9
-0
No files found.
Lib/test/test_largefile.py
Dosyayı görüntüle @
df8adcd7
...
@@ -8,6 +8,15 @@
...
@@ -8,6 +8,15 @@
import
test_support
import
test_support
import
os
,
struct
,
stat
,
sys
import
os
,
struct
,
stat
,
sys
try
:
import
signal
# The default handler for SIGXFSZ is to abort the process.
# By ignoring it, system calls exceeding the file size resource
# limit will raise IOError instead of crashing the interpreter.
oldhandler
=
signal
.
signal
(
signal
.
SIGXFSZ
,
signal
.
SIG_IGN
)
except
(
ImportError
,
AttributeError
):
pass
# create >2GB file (2GB = 2147483648 bytes)
# create >2GB file (2GB = 2147483648 bytes)
size
=
2500000000L
size
=
2500000000L
...
...
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