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
0027d4b4
Kaydet (Commit)
0027d4b4
authored
Tem 15, 2009
tarafından
Alexandre Vassalotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't check 64-bit test cases on 32-bit machine.
üst
ae6388df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
test_array.py
Lib/test/test_array.py
+15
-1
No files found.
Lib/test/test_array.py
Dosyayı görüntüle @
0027d4b4
...
...
@@ -106,6 +106,17 @@ class ArrayReconstructorTest(unittest.TestCase):
[
-
1
<<
31
,
(
1
<<
31
)
-
1
,
0
]),
([
'i'
,
'l'
],
SIGNED_INT32_BE
,
'>iii'
,
[
-
1
<<
31
,
(
1
<<
31
)
-
1
,
0
]),
([
'L'
],
UNSIGNED_INT64_LE
,
'<QQQQ'
,
[
1
<<
31
,
(
1
<<
31
)
-
1
,
0
,
(
1
<<
32
)
-
1
]),
([
'L'
],
UNSIGNED_INT64_BE
,
'>QQQQ'
,
[
1
<<
31
,
(
1
<<
31
)
-
1
,
0
,
(
1
<<
32
)
-
1
]),
([
'l'
],
SIGNED_INT64_LE
,
'<qqq'
,
[
-
1
<<
31
,
(
1
<<
31
)
-
1
,
0
]),
([
'l'
],
SIGNED_INT64_BE
,
'>qqq'
,
[
-
1
<<
31
,
(
1
<<
31
)
-
1
,
0
]),
# The following tests for INT64 will raise an OverflowError
# when run on a 32-bit machine. The tests are simply skipped
# in that case.
([
'L'
],
UNSIGNED_INT64_LE
,
'<QQQQ'
,
[
1
<<
63
,
(
1
<<
63
)
-
1
,
0
,
(
1
<<
64
)
-
1
]),
([
'L'
],
UNSIGNED_INT64_BE
,
'>QQQQ'
,
...
...
@@ -127,7 +138,10 @@ class ArrayReconstructorTest(unittest.TestCase):
valid_typecodes
,
mformat_code
,
struct_fmt
,
values
=
testcase
arraystr
=
struct
.
pack
(
struct_fmt
,
*
values
)
for
typecode
in
valid_typecodes
:
a
=
array
.
array
(
typecode
,
values
)
try
:
a
=
array
.
array
(
typecode
,
values
)
except
OverflowError
:
continue
# Skip this test case.
b
=
array_reconstructor
(
array
.
array
,
typecode
,
mformat_code
,
arraystr
)
self
.
assertEqual
(
a
,
b
,
...
...
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