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
758c7d04
Kaydet (Commit)
758c7d04
authored
Ock 14, 2017
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge tests from 3.5
üst
6b642c9a
b71c0956
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
test_sysconfig.py
Lib/test/test_sysconfig.py
+4
-2
test_unicode.py
Lib/test/test_unicode.py
+7
-0
No files found.
Lib/test/test_sysconfig.py
Dosyayı görüntüle @
758c7d04
...
@@ -5,7 +5,8 @@ import subprocess
...
@@ -5,7 +5,8 @@ import subprocess
import
shutil
import
shutil
from
copy
import
copy
from
copy
import
copy
from
test.support
import
(
run_unittest
,
TESTFN
,
unlink
,
check_warnings
,
from
test.support
import
(
run_unittest
,
import_module
,
TESTFN
,
unlink
,
check_warnings
,
captured_stdout
,
skip_unless_symlink
,
change_cwd
)
captured_stdout
,
skip_unless_symlink
,
change_cwd
)
import
sysconfig
import
sysconfig
...
@@ -389,7 +390,8 @@ class TestSysConfig(unittest.TestCase):
...
@@ -389,7 +390,8 @@ class TestSysConfig(unittest.TestCase):
hasattr
(
sys
.
implementation
,
'_multiarch'
),
hasattr
(
sys
.
implementation
,
'_multiarch'
),
'multiarch-specific test'
)
'multiarch-specific test'
)
def
test_triplet_in_ext_suffix
(
self
):
def
test_triplet_in_ext_suffix
(
self
):
import
ctypes
,
platform
,
re
ctypes
=
import_module
(
'ctypes'
)
import
platform
,
re
machine
=
platform
.
machine
()
machine
=
platform
.
machine
()
suffix
=
sysconfig
.
get_config_var
(
'EXT_SUFFIX'
)
suffix
=
sysconfig
.
get_config_var
(
'EXT_SUFFIX'
)
if
re
.
match
(
'(aarch64|arm|mips|ppc|powerpc|s390|sparc)'
,
machine
):
if
re
.
match
(
'(aarch64|arm|mips|ppc|powerpc|s390|sparc)'
,
machine
):
...
...
Lib/test/test_unicode.py
Dosyayı görüntüle @
758c7d04
...
@@ -465,6 +465,13 @@ class UnicodeTest(string_tests.CommonTest,
...
@@ -465,6 +465,13 @@ class UnicodeTest(string_tests.CommonTest,
self
.
checkraises
(
TypeError
,
' '
,
'join'
,
[
1
,
2
,
3
])
self
.
checkraises
(
TypeError
,
' '
,
'join'
,
[
1
,
2
,
3
])
self
.
checkraises
(
TypeError
,
' '
,
'join'
,
[
'1'
,
'2'
,
3
])
self
.
checkraises
(
TypeError
,
' '
,
'join'
,
[
'1'
,
'2'
,
3
])
@unittest.skipIf
(
sys
.
maxsize
>
2
**
32
,
'needs too much memory on a 64-bit platform'
)
def
test_join_overflow
(
self
):
size
=
int
(
sys
.
maxsize
**
0.5
)
+
1
seq
=
(
'A'
*
size
,)
*
size
self
.
assertRaises
(
OverflowError
,
''
.
join
,
seq
)
def
test_replace
(
self
):
def
test_replace
(
self
):
string_tests
.
CommonTest
.
test_replace
(
self
)
string_tests
.
CommonTest
.
test_replace
(
self
)
...
...
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