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
11c5275c
Kaydet (Commit)
11c5275c
authored
Haz 11, 2007
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport 55873:
Prevent these tests from running on Win64 since they don't apply there either
üst
390240d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
test_str.py
Lib/test/test_str.py
+2
-1
test_unicode.py
Lib/test/test_unicode.py
+2
-2
No files found.
Lib/test/test_str.py
Dosyayı görüntüle @
11c5275c
import
unittest
import
struct
import
sys
from
test
import
test_support
,
string_tests
...
...
@@ -88,7 +89,7 @@ class StrTest(
# This test only affects 32-bit platforms because expandtabs can only take
# an int as the max value, not a 64-bit C long. If expandtabs is changed
# to take a 64-bit long, this test should apply to all platforms.
if
sys
.
maxint
>
(
1
<<
32
):
if
sys
.
maxint
>
(
1
<<
32
)
or
struct
.
calcsize
(
'P'
)
!=
4
:
return
self
.
assertRaises
(
OverflowError
,
't
\t
t
\t
'
.
expandtabs
,
sys
.
maxint
)
...
...
Lib/test/test_unicode.py
Dosyayı görüntüle @
11c5275c
...
...
@@ -6,7 +6,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
#"
import
unittest
,
sys
,
str
ing
,
codecs
,
new
import
unittest
,
sys
,
str
uct
,
codecs
,
new
from
test
import
test_support
,
string_tests
# Error handling (bad decoder return)
...
...
@@ -821,7 +821,7 @@ class UnicodeTest(
# This test only affects 32-bit platforms because expandtabs can only take
# an int as the max value, not a 64-bit C long. If expandtabs is changed
# to take a 64-bit long, this test should apply to all platforms.
if
sys
.
maxint
>
(
1
<<
32
):
if
sys
.
maxint
>
(
1
<<
32
)
or
struct
.
calcsize
(
'P'
)
!=
4
:
return
self
.
assertRaises
(
OverflowError
,
u't
\t
t
\t
'
.
expandtabs
,
sys
.
maxint
)
...
...
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