Skip to content

Commit

Permalink
Issue 27921: Remove backslash from another f-string. I'll revert this…
Browse files Browse the repository at this point in the history
… change before beta 2.
  • Loading branch information
ericvsmith committed Sep 3, 2016
1 parent 6e02560 commit 1b8f7b8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Lib/test/test_traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,13 @@ def f():
lineno_f = f.__code__.co_firstlineno
result_f = (
'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' File "{__file__}", line {lineno_f+1}, in f\n'
f' File "{__file__}", line {lineno_f+1}, in 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' File "{__file__}", line {lineno_f+1}, in f\n'
f' File "{__file__}", line {lineno_f+1}, in f''\n'
' f()\n'
# XXX: The following line changes depending on whether the tests
# are run through the interactive interpreter or with -m
Expand Down Expand Up @@ -370,20 +370,20 @@ def g(count=10):

lineno_g = g.__code__.co_firstlineno
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'
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'
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'
' [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'
'ValueError\n'
)
tb_line = (
'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'
)
expected = (tb_line + result_g).splitlines()
Expand All @@ -407,16 +407,16 @@ def h(count=10):
lineno_h = h.__code__.co_firstlineno
result_h = (
'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'
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'
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'
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'
' [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'
)
expected = (result_h + result_g).splitlines()
Expand Down

0 comments on commit 1b8f7b8

Please sign in to comment.