[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:
Miss Islington (bot) 2025-05-25 18:48:19 +02:00 committed by GitHub
parent cbf4ccf1d0
commit c61fd7c0f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 7 deletions

View file

@ -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