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
1b8f7b81
Kaydet (Commit)
1b8f7b81
authored
Eyl 03, 2016
tarafından
Eric V. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 27921: Remove backslash from another f-string. I'll revert this change before beta 2.
üst
6e025608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
test_traceback.py
Lib/test/test_traceback.py
+14
-14
No files found.
Lib/test/test_traceback.py
Dosyayı görüntüle @
1b8f7b81
...
@@ -325,13 +325,13 @@ class TracebackFormatTests(unittest.TestCase):
...
@@ -325,13 +325,13 @@ class TracebackFormatTests(unittest.TestCase):
lineno_f
=
f
.
__code__
.
co_firstlineno
lineno_f
=
f
.
__code__
.
co_firstlineno
result_f
=
(
result_f
=
(
'Traceback (most recent call last):
\n
'
'Traceback (most recent call last):
\n
'
f
' File "{__file__}", line {lineno_f+5}, in _check_recursive_traceback_display
\n
'
f
' File "{__file__}", line {lineno_f+5}, in _check_recursive_traceback_display
''
\n
'
' f()
\n
'
' f()
\n
'
f
' File "{__file__}", line {lineno_f+1}, in f
\n
'
f
' File "{__file__}", line {lineno_f+1}, in f
''
\n
'
' f()
\n
'
' f()
\n
'
f
' File "{__file__}", line {lineno_f+1}, in f
\n
'
f
' File "{__file__}", line {lineno_f+1}, in f
''
\n
'
' f()
\n
'
' f()
\n
'
f
' File "{__file__}", line {lineno_f+1}, in f
\n
'
f
' File "{__file__}", line {lineno_f+1}, in f
''
\n
'
' f()
\n
'
' f()
\n
'
# XXX: The following line changes depending on whether the tests
# XXX: The following line changes depending on whether the tests
# are run through the interactive interpreter or with -m
# are run through the interactive interpreter or with -m
...
@@ -370,20 +370,20 @@ class TracebackFormatTests(unittest.TestCase):
...
@@ -370,20 +370,20 @@ class TracebackFormatTests(unittest.TestCase):
lineno_g
=
g
.
__code__
.
co_firstlineno
lineno_g
=
g
.
__code__
.
co_firstlineno
result_g
=
(
result_g
=
(
f
' File "{__file__}", line {lineno_g+2}, in g
\n
'
f
' File "{__file__}", line {lineno_g+2}, in g
''
\n
'
' return g(count-1)
\n
'
' return g(count-1)
\n
'
f
' File "{__file__}", line {lineno_g+2}, in g
\n
'
f
' File "{__file__}", line {lineno_g+2}, in g
''
\n
'
' return g(count-1)
\n
'
' return g(count-1)
\n
'
f
' File "{__file__}", line {lineno_g+2}, in g
\n
'
f
' File "{__file__}", line {lineno_g+2}, in g
''
\n
'
' return g(count-1)
\n
'
' return g(count-1)
\n
'
' [Previous line repeated 6 more times]
\n
'
' [Previous line repeated 6 more times]
\n
'
f
' File "{__file__}", line {lineno_g+3}, in g
\n
'
f
' File "{__file__}", line {lineno_g+3}, in g
''
\n
'
' raise ValueError
\n
'
' raise ValueError
\n
'
'ValueError
\n
'
'ValueError
\n
'
)
)
tb_line
=
(
tb_line
=
(
'Traceback (most recent call last):
\n
'
'Traceback (most recent call last):
\n
'
f
' File "{__file__}", line {lineno_g+7}, in _check_recursive_traceback_display
\n
'
f
' File "{__file__}", line {lineno_g+7}, in _check_recursive_traceback_display
''
\n
'
' g()
\n
'
' g()
\n
'
)
)
expected
=
(
tb_line
+
result_g
)
.
splitlines
()
expected
=
(
tb_line
+
result_g
)
.
splitlines
()
...
@@ -407,16 +407,16 @@ class TracebackFormatTests(unittest.TestCase):
...
@@ -407,16 +407,16 @@ class TracebackFormatTests(unittest.TestCase):
lineno_h
=
h
.
__code__
.
co_firstlineno
lineno_h
=
h
.
__code__
.
co_firstlineno
result_h
=
(
result_h
=
(
'Traceback (most recent call last):
\n
'
'Traceback (most recent call last):
\n
'
f
' File "{__file__}", line {lineno_h+7}, in _check_recursive_traceback_display
\n
'
f
' File "{__file__}", line {lineno_h+7}, in _check_recursive_traceback_display
''
\n
'
' h()
\n
'
' h()
\n
'
f
' File "{__file__}", line {lineno_h+2}, in h
\n
'
f
' File "{__file__}", line {lineno_h+2}, in h
''
\n
'
' return h(count-1)
\n
'
' return h(count-1)
\n
'
f
' File "{__file__}", line {lineno_h+2}, in h
\n
'
f
' File "{__file__}", line {lineno_h+2}, in h
''
\n
'
' return h(count-1)
\n
'
' return h(count-1)
\n
'
f
' File "{__file__}", line {lineno_h+2}, in h
\n
'
f
' File "{__file__}", line {lineno_h+2}, in h
''
\n
'
' return h(count-1)
\n
'
' return h(count-1)
\n
'
' [Previous line repeated 6 more times]
\n
'
' [Previous line repeated 6 more times]
\n
'
f
' File "{__file__}", line {lineno_h+3}, in h
\n
'
f
' File "{__file__}", line {lineno_h+3}, in h
''
\n
'
' g()
\n
'
' g()
\n
'
)
)
expected
=
(
result_h
+
result_g
)
.
splitlines
()
expected
=
(
result_h
+
result_g
)
.
splitlines
()
...
...
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