https://github.com/python/cpython/commit/6091fbda8bceda96a915deb4493bf8d73df67c01
commit: 6091fbda8bceda96a915deb4493bf8d73df67c01
branch: 3.10
author: Miss Islington (bot) <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-02-16T01:06:00Z
summary:

[3.10] gh-105821: Use a raw f-string in test_httpservers.py (GH-105822) 
(#115519)

files:
M Lib/test/test_httpservers.py

diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 66ab064241a08a..10a50fe97ec131 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -420,10 +420,10 @@ def test_undecodable_filename(self):
     def test_undecodable_parameter(self):
         # sanity check using a valid parameter
         response = self.request(self.base_url + '/?x=123').read()
-        self.assertRegex(response, f'listing for 
{self.base_url}/\?x=123'.encode('latin1'))
+        self.assertRegex(response, rf'listing for 
{self.base_url}/\?x=123'.encode('latin1'))
         # now the bogus encoding
         response = self.request(self.base_url + '/?x=%bb').read()
-        self.assertRegex(response, f'listing for 
{self.base_url}/\?x=\xef\xbf\xbd'.encode('latin1'))
+        self.assertRegex(response, rf'listing for 
{self.base_url}/\?x=\xef\xbf\xbd'.encode('latin1'))
 
     def test_get_dir_redirect_location_domain_injection_bug(self):
         """Ensure //evil.co/..%2f../../X does not put //evil.co/ in Location.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to