@@ -3948,7 +3948,7 @@ def test_e701_with_escaped_newline(self):
39483948 with autopep8_context (line ) as result :
39493949 self .assertEqual (fixed , result )
39503950
3951- @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detech in Python3.12+' )
3951+ @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detect in Python3.12+' )
39523952 def test_e701_with_escaped_newline_and_spaces (self ):
39533953 line = 'if True: \\ \n print(True)\n '
39543954 fixed = 'if True:\n print(True)\n '
@@ -4446,7 +4446,7 @@ def test_e731_with_default_arguments(self):
44464446 with autopep8_context (line , options = ['--select=E731' ]) as result :
44474447 self .assertEqual (fixed , result )
44484448
4449- @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detech in Python3.12+' )
4449+ @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detect in Python3.12+' )
44504450 def test_e901_should_cause_indentation_screw_up (self ):
44514451 line = """\
44524452 def tmp(g):
@@ -5495,7 +5495,7 @@ def test_help(self):
54955495 stdout = PIPE )
54965496 self .assertIn ('usage:' , p .communicate ()[0 ].decode ('utf-8' ).lower ())
54975497
5498- @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detech in Python3.12+' )
5498+ @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detect in Python3.12+' )
54995499 def test_verbose (self ):
55005500 line = 'bad_syntax)'
55015501 with temporary_file_context (line ) as filename :
@@ -7236,7 +7236,7 @@ def f(self):
72367236 with autopep8_context (line , options = ['--experimental' ]) as result :
72377237 self .assertEqual (fixed , result )
72387238
7239- @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detech in Python3.12+' )
7239+ @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detect in Python3.12+' )
72407240 def test_e501_experimental_parsing_dict_with_comments (self ):
72417241 line = """\
72427242 self.display['xxxxxxxxxxxx'] = [{'title': _('Library'), #. This is the first comment.
@@ -7260,7 +7260,7 @@ def test_e501_experimental_parsing_dict_with_comments(self):
72607260 with autopep8_context (line , options = ['--experimental' ]) as result :
72617261 self .assertEqual (fixed , result )
72627262
7263- @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detech in Python3.12+' )
7263+ @unittest .skipIf (sys .version_info >= (3 , 12 ), 'not detect in Python3.12+' )
72647264 def test_e501_experimental_if_line_over_limit (self ):
72657265 line = """\
72667266 if not xxxxxxxxxxxx(aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbb, cccccccccccccc, dddddddddddddddddddddd):
@@ -7333,6 +7333,14 @@ def test_e501_experimental_with_in(self):
73337333 with autopep8_context (line , options = ['--experimental' ]) as result :
73347334 self .assertEqual (fixed , result )
73357335
7336+ @unittest .skipIf (sys .version_info < (3 , 12 ), 'not support in Python3.11 and lower version' )
7337+ def test_e501_experimental_not_effect_with_fstring (self ):
7338+ line = """\
7339+ fstring = {"some_key": f"There is a string value inside of an f string, which itself is a dictionary value {s})"}
7340+ """
7341+ with autopep8_context (line , options = ['--experimental' ]) as result :
7342+ self .assertEqual (line , result )
7343+
73367344
73377345def fix_e266 (source ):
73387346 with autopep8_context (source , options = ['--select=E266' ]) as result :
0 commit comments