File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ def ignore(self, node):
675
675
EQ = NOTEQ = LT = LTE = GT = GTE = IS = ISNOT = IN = NOTIN = ignore
676
676
677
677
# additional node types
678
- COMPREHENSION = KEYWORD = handleChildren
678
+ COMPREHENSION = KEYWORD = FORMATTEDVALUE = handleChildren
679
679
680
680
def GLOBAL (self , node ):
681
681
"""
Original file line number Diff line number Diff line change @@ -989,6 +989,14 @@ def test_returnOnly(self):
989
989
"""Do not crash on lone "return"."""
990
990
self .flakes ('return 2' )
991
991
992
+ @skipIf (version_info < (3 , 6 ), 'new in Python 3.6' )
993
+ def test_f_string (self ):
994
+ """Test PEP 498 f-strings are treated as a usage."""
995
+ self .flakes ('''
996
+ baz = 0
997
+ print(f'\x7b 4*baz\N{RIGHT CURLY BRACKET} ')
998
+ ''' )
999
+
992
1000
993
1001
class TestAsyncStatements (TestCase ):
994
1002
You can’t perform that action at this time.
0 commit comments