diff --git a/test/test_autopep8.py b/test/test_autopep8.py index b6a69751..bbee8ccd 100755 --- a/test/test_autopep8.py +++ b/test/test_autopep8.py @@ -3954,6 +3954,13 @@ def test_e501_with_pep572_assignment_expressions(self): with autopep8_context(line, options=['-aa']) as result: self.assertEqual(line, result) + def test_e501_not_effected_with_fstring(self): + line = """\ +connector = f"socks5://{user}:{password}:{url}:{port}" +""" + with autopep8_context(line) as result: + self.assertEqual(line, result) + def test_e502(self): line = "print('abc'\\\n 'def')\n" fixed = "print('abc'\n 'def')\n"