@@ -176,7 +176,7 @@ def test_load(self):
176176 self .assertEqual (C .output (['path' ]),
177177 'Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme' )
178178 cookie_encoded = base64 .b64encode (b'Customer="WILE_E_COYOTE"; Path=/acme; Version=1' ).decode ('ascii' )
179- with self .assertWarnsRegex (DeprecationWarning , "BaseCookie.js_output" ):
179+ with self .assertWarnsRegex (DeprecationWarning , r "BaseCookie\ .js_output" ):
180180 self .assertEqual (C .js_output (), fr"""
181181 <script type="text/javascript">
182182 <!-- begin hiding
@@ -185,7 +185,7 @@ def test_load(self):
185185 </script>
186186 """ )
187187 cookie_encoded = base64 .b64encode (b'Customer="WILE_E_COYOTE"; Path=/acme' ).decode ('ascii' )
188- with self .assertWarnsRegex (DeprecationWarning , "BaseCookie.js_output" ):
188+ with self .assertWarnsRegex (DeprecationWarning , r "BaseCookie\ .js_output" ):
189189 self .assertEqual (C .js_output (['path' ]), fr"""
190190 <script type="text/javascript">
191191 <!-- begin hiding
@@ -295,7 +295,7 @@ def test_quoted_meta(self):
295295 self .assertEqual (C .output (['path' ]),
296296 'Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme' )
297297 expected_encoded_cookie = base64 .b64encode (b'Customer=\" WILE_E_COYOTE\" ; Path=/acme; Version=1' ).decode ('ascii' )
298- with self .assertWarnsRegex (DeprecationWarning , "BaseCookie.js_output" ):
298+ with self .assertWarnsRegex (DeprecationWarning , r "BaseCookie\ .js_output" ):
299299 self .assertEqual (C .js_output (), fr"""
300300 <script type="text/javascript">
301301 <!-- begin hiding
@@ -304,7 +304,7 @@ def test_quoted_meta(self):
304304 </script>
305305 """ )
306306 expected_encoded_cookie = base64 .b64encode (b'Customer=\" WILE_E_COYOTE\" ; Path=/acme' ).decode ('ascii' )
307- with self .assertWarnsRegex (DeprecationWarning , "BaseCookie.js_output" ):
307+ with self .assertWarnsRegex (DeprecationWarning , r "BaseCookie\ .js_output" ):
308308 self .assertEqual (C .js_output (['path' ]), fr"""
309309 <script type="text/javascript">
310310 <!-- begin hiding
@@ -676,7 +676,7 @@ def test_control_characters_output(self):
676676 morsel ._key = c0 # Override private variable.
677677 cookie = cookies .SimpleCookie ()
678678 cookie ["cookie" ] = morsel
679- with self .assertWarnsRegex (DeprecationWarning , "BaseCookie.js_output" ):
679+ with self .assertWarnsRegex (DeprecationWarning , r "BaseCookie\ .js_output" ):
680680 with self .assertRaises (cookies .CookieError ):
681681 cookie .js_output ()
682682
@@ -685,7 +685,7 @@ def test_control_characters_output(self):
685685 morsel ._coded_value = c0 # Override private variable.
686686 cookie = cookies .SimpleCookie ()
687687 cookie ["cookie" ] = morsel
688- with self .assertWarnsRegex (DeprecationWarning , "BaseCookie.js_output" ):
688+ with self .assertWarnsRegex (DeprecationWarning , r "BaseCookie\ .js_output" ):
689689 with self .assertRaises (cookies .CookieError ):
690690 cookie .js_output ()
691691
0 commit comments