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
ef1166ee
Kaydet (Commit)
ef1166ee
authored
Eyl 16, 2010
tarafından
Alexander Belopolsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 9315: Removed list comprehention test.
üst
f0161197
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
test_trace.py
Lib/test/test_trace.py
+0
-22
No files found.
Lib/test/test_trace.py
Dosyayı görüntüle @
ef1166ee
...
...
@@ -70,12 +70,6 @@ def traced_func_calling_generator():
def
traced_doubler
(
num
):
return
num
*
2
def
traced_caller_list_comprehension
():
k
=
10
mylist
=
[
traced_doubler
(
i
)
for
i
in
range
(
k
)]
return
mylist
class
TracedClass
(
object
):
def
__init__
(
self
,
x
):
self
.
a
=
x
...
...
@@ -156,22 +150,6 @@ class TestLineCounts(unittest.TestCase):
}
self
.
assertEqual
(
self
.
tracer
.
results
()
.
counts
,
expected
)
def
test_trace_list_comprehension
(
self
):
self
.
tracer
.
runfunc
(
traced_caller_list_comprehension
)
firstlineno_calling
=
get_firstlineno
(
traced_caller_list_comprehension
)
firstlineno_called
=
get_firstlineno
(
traced_doubler
)
expected
=
{
(
self
.
my_py_filename
,
firstlineno_calling
+
1
):
1
,
# List compehentions work differently in 3.x, so the count
# below changed compared to 2.x.
(
self
.
my_py_filename
,
firstlineno_calling
+
2
):
12
,
(
self
.
my_py_filename
,
firstlineno_calling
+
3
):
1
,
(
self
.
my_py_filename
,
firstlineno_called
+
1
):
10
,
}
self
.
assertEqual
(
self
.
tracer
.
results
()
.
counts
,
expected
)
def
test_linear_methods
(
self
):
# XXX todo: later add 'static_method_linear' and 'class_method_linear'
# here, once issue1764286 is resolved
...
...
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