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
27f88368
Kaydet (Commit)
27f88368
authored
Tem 08, 2004
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
0e43db5b
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
26 additions
and
35 deletions
+26
-35
test_binascii.py
Lib/test/test_binascii.py
+1
-1
test_codecs.py
Lib/test/test_codecs.py
+1
-1
test_csv.py
Lib/test/test_csv.py
+3
-3
test_genexps.py
Lib/test/test_genexps.py
+0
-6
test_heapq.py
Lib/test/test_heapq.py
+0
-1
test_htmlparser.py
Lib/test/test_htmlparser.py
+1
-1
test_isinstance.py
Lib/test/test_isinstance.py
+1
-1
test_iterlen.py
Lib/test/test_iterlen.py
+7
-7
test_multibytecodec_support.py
Lib/test/test_multibytecodec_support.py
+1
-1
test_profile.py
Lib/test/test_profile.py
+8
-8
test_tcl.py
Lib/test/test_tcl.py
+1
-1
test_textwrap.py
Lib/test/test_textwrap.py
+1
-1
test_urllib2.py
Lib/test/test_urllib2.py
+1
-1
diff.py
Tools/scripts/diff.py
+0
-1
texcheck.py
Tools/scripts/texcheck.py
+0
-1
No files found.
Lib/test/test_binascii.py
Dosyayı görüntüle @
27f88368
...
...
@@ -101,7 +101,7 @@ class BinASCIITest(unittest.TestCase):
self
.
assertEqual
(
binascii
.
a2b_uu
(
"
\xff
"
),
"
\x00
"
*
31
)
self
.
assertRaises
(
binascii
.
Error
,
binascii
.
a2b_uu
,
"
\xff\x00
"
)
self
.
assertRaises
(
binascii
.
Error
,
binascii
.
a2b_uu
,
"!!!!"
)
self
.
assertRaises
(
binascii
.
Error
,
binascii
.
b2a_uu
,
46
*
"!"
)
def
test_crc32
(
self
):
...
...
Lib/test/test_codecs.py
Dosyayı görüntüle @
27f88368
...
...
@@ -343,7 +343,7 @@ def test_main():
RecodingTest
,
PunycodeTest
,
NameprepTest
,
CodecTest
CodecTest
)
...
...
Lib/test/test_csv.py
Dosyayı görüntüle @
27f88368
...
...
@@ -133,7 +133,7 @@ class Test_Csv(unittest.TestCase):
finally
:
fileobj
.
close
()
os
.
unlink
(
name
)
def
_read_test
(
self
,
input
,
expect
,
**
kwargs
):
reader
=
csv
.
reader
(
input
,
**
kwargs
)
result
=
list
(
reader
)
...
...
@@ -226,7 +226,7 @@ class TestDialectRegistry(unittest.TestCase):
finally
:
fileobj
.
close
()
os
.
unlink
(
name
)
def
test_dialect_apply
(
self
):
class
testA
(
csv
.
excel
):
delimiter
=
"
\t
"
...
...
@@ -247,7 +247,7 @@ class TestDialectRegistry(unittest.TestCase):
finally
:
fileobj
.
close
()
os
.
unlink
(
name
)
fd
,
name
=
tempfile
.
mkstemp
()
fileobj
=
os
.
fdopen
(
fd
,
"w+b"
)
try
:
...
...
Lib/test/test_genexps.py
Dosyayı görüntüle @
27f88368
...
...
@@ -259,9 +259,3 @@ def test_main(verbose=None):
if
__name__
==
"__main__"
:
test_main
(
verbose
=
True
)
Lib/test/test_heapq.py
Dosyayı görüntüle @
27f88368
...
...
@@ -126,4 +126,3 @@ def test_main(verbose=None):
if
__name__
==
"__main__"
:
test_main
(
verbose
=
True
)
Lib/test/test_htmlparser.py
Dosyayı görüntüle @
27f88368
...
...
@@ -204,7 +204,7 @@ DOCTYPE html [
self
.
_run_check
(
"<e a=rgb(1,2,3)>"
,
[
(
"starttag"
,
"e"
,
[(
"a"
,
"rgb(1,2,3)"
)]),
])
# Regression test for SF bug #921657.
# Regression test for SF bug #921657.
self
.
_run_check
(
"<a href=mailto:xyz@example.com>"
,
[
(
"starttag"
,
"a"
,
[(
"href"
,
"mailto:xyz@example.com"
)]),
])
...
...
Lib/test/test_isinstance.py
Dosyayı görüntüle @
27f88368
...
...
@@ -252,7 +252,7 @@ class TestIsInstanceIsSubclass(unittest.TestCase):
def
test_isinstance_recursion_limit
(
self
):
# make sure that issubclass raises RuntimeError before the C stack is
# blown
# blown
self
.
assertRaises
(
RuntimeError
,
blowstack
,
isinstance
,
''
,
str
)
def
blowstack
(
fxn
,
arg
,
compare_to
):
...
...
Lib/test/test_iterlen.py
Dosyayı görüntüle @
27f88368
...
...
@@ -52,13 +52,13 @@ n = 10
class
TestInvariantWithoutMutations
(
unittest
.
TestCase
):
def
test_invariant
(
self
):
it
=
self
.
it
for
i
in
reversed
(
xrange
(
1
,
n
+
1
)):
self
.
assertEqual
(
len
(
it
),
i
)
it
.
next
()
self
.
assertEqual
(
len
(
it
),
0
)
self
.
assertRaises
(
StopIteration
,
it
.
next
)
self
.
assertEqual
(
len
(
it
),
0
)
it
=
self
.
it
for
i
in
reversed
(
xrange
(
1
,
n
+
1
)):
self
.
assertEqual
(
len
(
it
),
i
)
it
.
next
()
self
.
assertEqual
(
len
(
it
),
0
)
self
.
assertRaises
(
StopIteration
,
it
.
next
)
self
.
assertEqual
(
len
(
it
),
0
)
class
TestTemporarilyImmutable
(
TestInvariantWithoutMutations
):
...
...
Lib/test/test_multibytecodec_support.py
Dosyayı görüntüle @
27f88368
...
...
@@ -167,7 +167,7 @@ class TestBase_Mapping(unittest.TestCase):
parent
=
os
.
path
.
join
(
os
.
pardir
,
self
.
mapfilename
)
if
not
os
.
path
.
exists
(
parent
):
format
=
'
%
s not found, download from
%
s'
raise
test_support
.
TestSkipped
(
format
%
raise
test_support
.
TestSkipped
(
format
%
(
self
.
mapfilename
,
self
.
mapfileurl
))
else
:
self
.
mapfilename
=
parent
...
...
Lib/test/test_profile.py
Dosyayı görüntüle @
27f88368
...
...
@@ -86,14 +86,14 @@ class C:
def
test_2
():
d
=
globals
()
.
copy
()
def
testfunc
():
global
x
x
=
1
d
[
'testfunc'
]
=
testfunc
profile
.
runctx
(
"testfunc()"
,
d
,
d
,
TESTFN
)
vereq
(
x
,
1
)
os
.
unlink
(
TESTFN
)
d
=
globals
()
.
copy
()
def
testfunc
():
global
x
x
=
1
d
[
'testfunc'
]
=
testfunc
profile
.
runctx
(
"testfunc()"
,
d
,
d
,
TESTFN
)
vereq
(
x
,
1
)
os
.
unlink
(
TESTFN
)
if
__name__
==
"__main__"
:
test_main
()
...
...
Lib/test/test_tcl.py
Dosyayı görüntüle @
27f88368
...
...
@@ -85,7 +85,7 @@ class TclTest(unittest.TestCase):
def
testUnsetVarException
(
self
):
tcl
=
self
.
interp
self
.
assertRaises
(
TclError
,
tcl
.
unsetvar
,
'a'
)
def
testEvalFile
(
self
):
tcl
=
self
.
interp
filename
=
"testEvalFile.tcl"
...
...
Lib/test/test_textwrap.py
Dosyayı görüntüle @
27f88368
...
...
@@ -128,7 +128,7 @@ What a mess!
wrapper
.
width
=
60
expect
=
[
'And she said, "Go to hell!" Can you believe that?'
]
self
.
check
(
wrapper
.
wrap
(
text
),
expect
)
def
test_wrap_short
(
self
):
# Wrapping to make short lines longer
...
...
Lib/test/test_urllib2.py
Dosyayı görüntüle @
27f88368
...
...
@@ -678,7 +678,7 @@ class NetworkTests(unittest.TestCase):
data
=
result
.
read
()
self
.
assertEqual
(
len
(
data
),
20
)
def
test_main
(
verbose
=
None
):
tests
=
(
TrivialTests
,
...
...
Tools/scripts/diff.py
Dosyayı görüntüle @
27f88368
...
...
@@ -38,4 +38,3 @@ else:
diff
=
difflib
.
context_diff
(
fromlines
,
tolines
,
fromfile
,
tofile
,
fromdate
,
todate
,
n
=
n
)
sys
.
stdout
.
writelines
(
diff
)
Tools/scripts/texcheck.py
Dosyayı görüntüle @
27f88368
...
...
@@ -230,4 +230,3 @@ def main(args=None):
if
__name__
==
'__main__'
:
sys
.
exit
(
main
())
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