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
42e41243
Kaydet (Commit)
42e41243
authored
Şub 15, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert 60793 for test_array; on a 64-bit system,
MemoryError was not guaranteed.
üst
9c04257b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
test_array.py
Lib/test/test_array.py
+0
-17
NEWS
Misc/NEWS
+1
-0
No files found.
Lib/test/test_array.py
Dosyayı görüntüle @
42e41243
...
@@ -975,23 +975,6 @@ tests.append(FloatTest)
...
@@ -975,23 +975,6 @@ tests.append(FloatTest)
class
DoubleTest
(
FPTest
):
class
DoubleTest
(
FPTest
):
typecode
=
'd'
typecode
=
'd'
minitemsize
=
8
minitemsize
=
8
def
test_alloc_overflow
(
self
):
a
=
array
.
array
(
'd'
,
[
-
1
]
*
65536
)
try
:
a
*=
65536
except
MemoryError
:
pass
else
:
self
.
fail
(
"a *= 2**16 didn't raise MemoryError"
)
b
=
array
.
array
(
'd'
,
[
2.71828183
,
3.14159265
,
-
1
])
try
:
b
*
1431655766
except
MemoryError
:
pass
else
:
self
.
fail
(
"a * 1431655766 didn't raise MemoryError"
)
tests
.
append
(
DoubleTest
)
tests
.
append
(
DoubleTest
)
def
test_main
(
verbose
=
None
):
def
test_main
(
verbose
=
None
):
...
...
Misc/NEWS
Dosyayı görüntüle @
42e41243
...
@@ -13,6 +13,7 @@ Extension Modules
...
@@ -13,6 +13,7 @@ Extension Modules
-----------------
-----------------
- Fix deallocation of array objects when allocation ran out of memory.
- Fix deallocation of array objects when allocation ran out of memory.
Remove array test case that was incorrect on 64-bit systems.
What'
s
New
in
Python
2.5.2
c1
?
What'
s
New
in
Python
2.5.2
c1
?
...
...
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