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
bb86314d
Kaydet (Commit)
bb86314d
authored
Eki 14, 2009
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix failures in test_profilehooks when run with -3
üst
79d923b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
test_profilehooks.py
Lib/test/test_profilehooks.py
+13
-13
No files found.
Lib/test/test_profilehooks.py
Dosyayı görüntüle @
bb86314d
...
@@ -110,7 +110,7 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -110,7 +110,7 @@ class ProfileHookTestCase(TestCaseBase):
def
test_exception
(
self
):
def
test_exception
(
self
):
def
f
(
p
):
def
f
(
p
):
1
/
0
1
.
/
0
f_ident
=
ident
(
f
)
f_ident
=
ident
(
f
)
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
(
1
,
'return'
,
f_ident
),
(
1
,
'return'
,
f_ident
),
...
@@ -118,7 +118,7 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -118,7 +118,7 @@ class ProfileHookTestCase(TestCaseBase):
def
test_caught_exception
(
self
):
def
test_caught_exception
(
self
):
def
f
(
p
):
def
f
(
p
):
try
:
1
/
0
try
:
1
.
/
0
except
:
pass
except
:
pass
f_ident
=
ident
(
f
)
f_ident
=
ident
(
f
)
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
...
@@ -127,7 +127,7 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -127,7 +127,7 @@ class ProfileHookTestCase(TestCaseBase):
def
test_caught_nested_exception
(
self
):
def
test_caught_nested_exception
(
self
):
def
f
(
p
):
def
f
(
p
):
try
:
1
/
0
try
:
1
.
/
0
except
:
pass
except
:
pass
f_ident
=
ident
(
f
)
f_ident
=
ident
(
f
)
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
...
@@ -136,7 +136,7 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -136,7 +136,7 @@ class ProfileHookTestCase(TestCaseBase):
def
test_nested_exception
(
self
):
def
test_nested_exception
(
self
):
def
f
(
p
):
def
f
(
p
):
1
/
0
1
.
/
0
f_ident
=
ident
(
f
)
f_ident
=
ident
(
f
)
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
# This isn't what I expected:
# This isn't what I expected:
...
@@ -147,7 +147,7 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -147,7 +147,7 @@ class ProfileHookTestCase(TestCaseBase):
def
test_exception_in_except_clause
(
self
):
def
test_exception_in_except_clause
(
self
):
def
f
(
p
):
def
f
(
p
):
1
/
0
1
.
/
0
def
g
(
p
):
def
g
(
p
):
try
:
try
:
f
(
p
)
f
(
p
)
...
@@ -166,7 +166,7 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -166,7 +166,7 @@ class ProfileHookTestCase(TestCaseBase):
def
test_exception_propogation
(
self
):
def
test_exception_propogation
(
self
):
def
f
(
p
):
def
f
(
p
):
1
/
0
1
.
/
0
def
g
(
p
):
def
g
(
p
):
try
:
f
(
p
)
try
:
f
(
p
)
finally
:
p
.
add_event
(
"falling through"
)
finally
:
p
.
add_event
(
"falling through"
)
...
@@ -181,8 +181,8 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -181,8 +181,8 @@ class ProfileHookTestCase(TestCaseBase):
def
test_raise_twice
(
self
):
def
test_raise_twice
(
self
):
def
f
(
p
):
def
f
(
p
):
try
:
1
/
0
try
:
1
.
/
0
except
:
1
/
0
except
:
1
.
/
0
f_ident
=
ident
(
f
)
f_ident
=
ident
(
f
)
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
(
1
,
'return'
,
f_ident
),
(
1
,
'return'
,
f_ident
),
...
@@ -190,7 +190,7 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -190,7 +190,7 @@ class ProfileHookTestCase(TestCaseBase):
def
test_raise_reraise
(
self
):
def
test_raise_reraise
(
self
):
def
f
(
p
):
def
f
(
p
):
try
:
1
/
0
try
:
1
.
/
0
except
:
raise
except
:
raise
f_ident
=
ident
(
f
)
f_ident
=
ident
(
f
)
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
...
@@ -207,7 +207,7 @@ class ProfileHookTestCase(TestCaseBase):
...
@@ -207,7 +207,7 @@ class ProfileHookTestCase(TestCaseBase):
def
test_distant_exception
(
self
):
def
test_distant_exception
(
self
):
def
f
():
def
f
():
1
/
0
1
.
/
0
def
g
():
def
g
():
f
()
f
()
def
h
():
def
h
():
...
@@ -292,7 +292,7 @@ class ProfileSimulatorTestCase(TestCaseBase):
...
@@ -292,7 +292,7 @@ class ProfileSimulatorTestCase(TestCaseBase):
def
test_basic_exception
(
self
):
def
test_basic_exception
(
self
):
def
f
(
p
):
def
f
(
p
):
1
/
0
1
.
/
0
f_ident
=
ident
(
f
)
f_ident
=
ident
(
f
)
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
(
1
,
'return'
,
f_ident
),
(
1
,
'return'
,
f_ident
),
...
@@ -300,7 +300,7 @@ class ProfileSimulatorTestCase(TestCaseBase):
...
@@ -300,7 +300,7 @@ class ProfileSimulatorTestCase(TestCaseBase):
def
test_caught_exception
(
self
):
def
test_caught_exception
(
self
):
def
f
(
p
):
def
f
(
p
):
try
:
1
/
0
try
:
1
.
/
0
except
:
pass
except
:
pass
f_ident
=
ident
(
f
)
f_ident
=
ident
(
f
)
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
self
.
check_events
(
f
,
[(
1
,
'call'
,
f_ident
),
...
@@ -309,7 +309,7 @@ class ProfileSimulatorTestCase(TestCaseBase):
...
@@ -309,7 +309,7 @@ class ProfileSimulatorTestCase(TestCaseBase):
def
test_distant_exception
(
self
):
def
test_distant_exception
(
self
):
def
f
():
def
f
():
1
/
0
1
.
/
0
def
g
():
def
g
():
f
()
f
()
def
h
():
def
h
():
...
...
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