diff options
| author | Eric V. Smith <eric@trueblade.com> | 2016-09-10 01:56:20 (GMT) | 
|---|---|---|
| committer | Eric V. Smith <eric@trueblade.com> | 2016-09-10 01:56:20 (GMT) | 
| commit | 451d0e38fcf50d976236d7d00ccfe8c1a2305086 (patch) | |
| tree | 29e15833e76714f8f0f8b906871b82c8c1a42967 /Lib/test/test_tools/test_unparse.py | |
| parent | 052828db1538bf0d42d7e256da13c6e183974a13 (diff) | |
| download | cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.zip cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.tar.gz cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.tar.bz2  | |
Issue 27948: Allow backslashes in the literal string portion of f-strings, but not in the expressions. Also, require expressions to begin and end with literal curly braces.
Diffstat (limited to 'Lib/test/test_tools/test_unparse.py')
| -rw-r--r-- | Lib/test/test_tools/test_unparse.py | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_tools/test_unparse.py b/Lib/test/test_tools/test_unparse.py index ed0001a..65dee1b 100644 --- a/Lib/test/test_tools/test_unparse.py +++ b/Lib/test/test_tools/test_unparse.py @@ -285,12 +285,12 @@ class DirectoryTestCase(ASTTestCase):              if test.support.verbose:                  print('Testing %s' % filename) -            # it's very much a hack that I'm skipping these files, but -            #  I can't figure out why they fail. I'll fix it when I -            #  address issue #27948. -            if os.path.basename(filename) in ('test_fstring.py', 'test_traceback.py'): +            # Some f-strings are not correctly round-tripped by +            #  Tools/parser/unparse.py.  See issue 28002 for details. +            #  We need to skip files that contain such f-strings. +            if os.path.basename(filename) in ('test_fstring.py', ):                  if test.support.verbose: -                    print(f'Skipping {filename}: see issue 27921') +                    print(f'Skipping {filename}: see issue 28002')                  continue              with self.subTest(filename=filename):  | 
