@@ -53,7 +53,7 @@ def foo():
5353 (value_2 , value_2 ),
5454 ('assert t.uname == "\\ xe4\\ xf6\\ xfc"' , 'assert t.uname == "äöü"' ),
5555 ('assert t.uname == "\\ udce4\\ udcf6\\ udcfc"' , 'assert t.uname == "\\ udce4\\ udcf6\\ udcfc"' ),
56- ]
56+ ],
5757 )
5858def test_quotes (value : str , expects : str ):
5959 assert dynamic_quotes (value ) == expects
@@ -79,21 +79,21 @@ def test_quotes(value: str, expects: str):
7979 ("def foo():\n \t 'docstring'\n \t 'hello\\ nworld'" , "def foo():\n \t 'docstring'\n \t 'hello\\ nworld'" ),
8080 (
8181 'def foo():\n \t \' docstring\' \n \t "hello\\ nworld"' ,
82- 'def foo():\n \t \' docstring\' \n \t "hello\\ nworld"'
82+ 'def foo():\n \t \' docstring\' \n \t "hello\\ nworld"' ,
8383 ),
8484 ('def foo():\n \t \' docstring\' \n \t "\\ ""' , "def foo():\n \t 'docstring'\n \t '\" '" ),
8585 ('def foo():\n \t \' docstring\' \n \t "quote \\ ""' , "def foo():\n \t 'docstring'\n \t 'quote \" '" ),
8686 ("def foo():\n \t 'docstring'\n \t '\\ ''" , "def foo():\n \t 'docstring'\n \t \" '\" " ),
8787 ("def foo():\n \t 'docstring'\n \t 'quote \\ ''" , "def foo():\n \t 'docstring'\n \t \" quote '\" " ),
8888 (
8989 'def foo():\n \t \' docstring\' \n \t assert t.uname == "\\ xe4\\ xf6\\ xfc"' ,
90- 'def foo():\n \t \' docstring\' \n \t assert t.uname == "äöü"'
90+ 'def foo():\n \t \' docstring\' \n \t assert t.uname == "äöü"' ,
9191 ),
9292 (
9393 'def foo():\n \t \' docstring\' \n \t assert t.uname == "\\ udce4\\ udcf6\\ udcfc"' ,
94- 'def foo():\n \t \' docstring\' \n \t assert t.uname == "\\ udce4\\ udcf6\\ udcfc"'
94+ 'def foo():\n \t \' docstring\' \n \t assert t.uname == "\\ udce4\\ udcf6\\ udcfc"' ,
9595 ),
96- ]
96+ ],
9797 )
9898def test_quotes_function (value : str , expects : str ):
9999 assert dynamic_quotes (value ) == expects
@@ -104,7 +104,7 @@ def test_quotes_function(value: str, expects: str):
104104 [
105105 (
106106 "async def foo():\n \t 'docstring'\n \t 'hello world'" ,
107- 'async def foo():\n \t \' docstring\' \n \t "hello world"'
107+ 'async def foo():\n \t \' docstring\' \n \t "hello world"' ,
108108 ),
109109 ("async def foo():\n \t 'docstring'\n \t ''" , "async def foo():\n \t 'docstring'\n \t ''" ),
110110 ('async def foo():\n \t \' docstring\' \n \t ""' , "async def foo():\n \t 'docstring'\n \t ''" ),
@@ -119,39 +119,39 @@ def test_quotes_function(value: str, expects: str):
119119 ('async def foo():\n \t \' docstring\' \n \t "☃"' , "async def foo():\n \t 'docstring'\n \t '☃'" ),
120120 (
121121 'async def foo():\n \t \' docstring\' \n \t print(123)\n "☃"' ,
122- "async def foo():\n \t 'docstring'\n \t print(123)\n '☃'"
122+ "async def foo():\n \t 'docstring'\n \t print(123)\n '☃'" ,
123123 ),
124124 (
125125 'async def foo():\n \t \' docstring\' \n \t "☃"\n print(123)' ,
126- "async def foo():\n \t 'docstring'\n \t '☃'\n print(123)"
126+ "async def foo():\n \t 'docstring'\n \t '☃'\n print(123)" ,
127127 ),
128128 (
129129 "async def foo():\n \t 'docstring'\n \t 'hello\\ nworld'" ,
130- "async def foo():\n \t 'docstring'\n \t 'hello\\ nworld'"
130+ "async def foo():\n \t 'docstring'\n \t 'hello\\ nworld'" ,
131131 ),
132132 (
133133 'async def foo():\n \t \' docstring\' \n \t "hello\\ nworld"' ,
134- 'async def foo():\n \t \' docstring\' \n \t "hello\\ nworld"'
134+ 'async def foo():\n \t \' docstring\' \n \t "hello\\ nworld"' ,
135135 ),
136136 ('async def foo():\n \t \' docstring\' \n \t "\\ ""' , "async def foo():\n \t 'docstring'\n \t '\" '" ),
137137 (
138138 'async def foo():\n \t \' docstring\' \n \t "quote \\ ""' ,
139- "async def foo():\n \t 'docstring'\n \t 'quote \" '"
139+ "async def foo():\n \t 'docstring'\n \t 'quote \" '" ,
140140 ),
141141 ("async def foo():\n \t 'docstring'\n \t '\\ ''" , "async def foo():\n \t 'docstring'\n \t \" '\" " ),
142142 (
143143 "async def foo():\n \t 'docstring'\n \t 'quote \\ ''" ,
144- "async def foo():\n \t 'docstring'\n \t \" quote '\" "
144+ "async def foo():\n \t 'docstring'\n \t \" quote '\" " ,
145145 ),
146146 (
147147 'async def foo():\n \t \' docstring\' \n \t assert t.uname == "\\ xe4\\ xf6\\ xfc"' ,
148- 'async def foo():\n \t \' docstring\' \n \t assert t.uname == "äöü"'
148+ 'async def foo():\n \t \' docstring\' \n \t assert t.uname == "äöü"' ,
149149 ),
150150 (
151151 'async def foo():\n \t \' docstring\' \n \t assert t.uname == "\\ udce4\\ udcf6\\ udcfc"' ,
152- 'async def foo():\n \t \' docstring\' \n \t assert t.uname == "\\ udce4\\ udcf6\\ udcfc"'
152+ 'async def foo():\n \t \' docstring\' \n \t assert t.uname == "\\ udce4\\ udcf6\\ udcfc"' ,
153153 ),
154- ]
154+ ],
155155 )
156156def test_quotes_async_function (value : str , expects : str ):
157157 assert dynamic_quotes (value ) == expects
0 commit comments