mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
[3.14] gh-134582: Fix t-strings untokenize() roundtrip removing space between braces (GH-134603) (#134659)
gh-134582: Fix t-strings untokenize() roundtrip removing space between braces (GH-134603)
(cherry picked from commit 52509cc94b)
Co-authored-by: Loïc Simon <loic.pano@gmail.com>
This commit is contained in:
parent
cbf4ccf1d0
commit
c61fd7c0f2
3 changed files with 12 additions and 7 deletions
|
|
@ -1975,6 +1975,10 @@ if 1:
|
|||
for case in cases:
|
||||
self.check_roundtrip(case)
|
||||
|
||||
self.check_roundtrip(r"t'{ {}}'")
|
||||
self.check_roundtrip(r"t'{f'{ {}}'}{ {}}'")
|
||||
self.check_roundtrip(r"f'{t'{ {}}'}{ {}}'")
|
||||
|
||||
|
||||
def test_continuation(self):
|
||||
# Balancing continuation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue