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
02ea12b2
Kaydet (Commit)
02ea12b2
authored
Tem 28, 2010
tarafından
Florent Xicluna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Syntax cleanup.
üst
3f8ab965
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
11 deletions
+9
-11
test_callbacks.py
Lib/ctypes/test/test_callbacks.py
+1
-1
encoder.py
Lib/json/encoder.py
+1
-1
pickletools.py
Lib/pickletools.py
+1
-1
script_helper.py
Lib/test/script_helper.py
+2
-2
test_binop.py
Lib/test/test_binop.py
+1
-1
test_pow.py
Lib/test/test_pow.py
+2
-2
test_sys.py
Lib/test/test_sys.py
+1
-3
No files found.
Lib/ctypes/test/test_callbacks.py
Dosyayı görüntüle @
02ea12b2
...
...
@@ -164,7 +164,7 @@ class SampleCallbacksTestCase(unittest.TestCase):
result
=
integrate
(
0.0
,
1.0
,
CALLBACK
(
func
),
10
)
diff
=
abs
(
result
-
1.
/
3.
)
self
.
assert
True
(
diff
<
0.01
,
"
%
s not less than 0.01"
%
diff
)
self
.
assert
Less
(
diff
,
0.01
,
"
%
s not less than 0.01"
%
diff
)
def
test_issue_8959_a
(
self
):
from
ctypes.util
import
find_library
...
...
Lib/json/encoder.py
Dosyayı görüntüle @
02ea12b2
...
...
@@ -397,7 +397,7 @@ def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,
yield
'true'
elif
o
is
False
:
yield
'false'
elif
isinstance
(
o
,
(
int
,
int
)
):
elif
isinstance
(
o
,
int
):
yield
str
(
o
)
elif
isinstance
(
o
,
float
):
yield
_floatstr
(
o
)
...
...
Lib/pickletools.py
Dosyayı görüntüle @
02ea12b2
...
...
@@ -733,7 +733,7 @@ pylong = StackObject(
pyinteger_or_bool
=
StackObject
(
name
=
'int_or_bool'
,
obtype
=
(
int
,
int
,
bool
),
obtype
=
(
int
,
bool
),
doc
=
"A Python integer object (short or long), or "
"a Python bool."
)
...
...
Lib/test/script_helper.py
Dosyayı görüntüle @
02ea12b2
...
...
@@ -79,7 +79,7 @@ def make_zip_script(zip_dir, zip_basename, script_name, name_in_zip=None):
name_in_zip
=
os
.
path
.
basename
(
script_name
)
zip_file
.
write
(
script_name
,
name_in_zip
)
zip_file
.
close
()
#if test.
test_
support.verbose:
#if test.support.verbose:
# zip_file = zipfile.ZipFile(zip_name, 'r')
# print 'Contents of %r:' % zip_name
# zip_file.printdir()
...
...
@@ -114,7 +114,7 @@ def make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename,
zip_file
.
close
()
for
name
in
unlink
:
os
.
unlink
(
name
)
#if test.
test_
support.verbose:
#if test.support.verbose:
# zip_file = zipfile.ZipFile(zip_name, 'r')
# print 'Contents of %r:' % zip_name
# zip_file.printdir()
...
...
Lib/test/test_binop.py
Dosyayı görüntüle @
02ea12b2
...
...
@@ -16,7 +16,7 @@ def isint(x):
def
isnum
(
x
):
"""Test whether an object is an instance of a built-in numeric type."""
for
T
in
int
,
int
,
float
,
complex
:
for
T
in
int
,
float
,
complex
:
if
isinstance
(
x
,
T
):
return
1
return
0
...
...
Lib/test/test_pow.py
Dosyayı görüntüle @
02ea12b2
...
...
@@ -18,14 +18,14 @@ class PowTest(unittest.TestCase):
self
.
assertEquals
(
pow
(
2
,
i
),
pow2
)
if
i
!=
30
:
pow2
=
pow2
*
2
for
othertype
in
int
,
int
:
for
othertype
in
(
int
,)
:
for
i
in
list
(
range
(
-
10
,
0
))
+
list
(
range
(
1
,
10
)):
ii
=
type
(
i
)
for
j
in
range
(
1
,
11
):
jj
=
-
othertype
(
j
)
pow
(
ii
,
jj
)
for
othertype
in
int
,
int
,
float
:
for
othertype
in
int
,
float
:
for
i
in
range
(
1
,
100
):
zero
=
type
(
0
)
exp
=
-
othertype
(
i
/
10.0
)
...
...
Lib/test/test_sys.py
Dosyayı görüntüle @
02ea12b2
...
...
@@ -86,7 +86,6 @@ class SysModuleTest(unittest.TestCase):
# Python/pythonrun.c::PyErr_PrintEx() is tricky.
def
test_exit
(
self
):
import
subprocess
self
.
assertRaises
(
TypeError
,
sys
.
exit
,
42
,
42
)
...
...
@@ -529,7 +528,6 @@ class SysModuleTest(unittest.TestCase):
sys
.
_clear_type_cache
()
def
test_ioencoding
(
self
):
import
subprocess
env
=
dict
(
os
.
environ
)
# Test character: cent sign, encoded as 0x4A (ASCII J) in CP424,
...
...
@@ -551,7 +549,7 @@ class SysModuleTest(unittest.TestCase):
# Issue #7774: Ensure that sys.executable is an empty string if argv[0]
# has been set to an non existent program name and Python is unable to
# retrieve the real program name
import
subprocess
# For a normal installation, it should work without 'cwd'
# argument. For test runs in the build directory, see #7774.
python_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
sys
.
executable
))
...
...
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