cpython: 7cdc941d5180 (original) (raw)

Mercurial > cpython

changeset 92128:7cdc941d5180

Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales. [#22165]

Serhiy Storchaka storchaka@gmail.com
date Sun, 17 Aug 2014 12:21:06 +0300
parents 3153a400b739(current diff)a894b629bbea(diff)
children dc77ad3a17aa
files
diffstat 1 files changed, 3 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_httpservers.py 5

line wrap: on

line diff

--- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -272,6 +272,7 @@ class SimpleHTTPServerTestCase(BaseTestC @unittest.skipUnless(support.TESTFN_UNDECODABLE, 'need support.TESTFN_UNDECODABLE') def test_undecodable_filename(self):

@@ -279,9 +280,9 @@ class SimpleHTTPServerTestCase(BaseTestC body = self.check_status_and_reason(response, 200) quotedname = urllib.parse.quote(filename, errors='surrogatepass') self.assertIn(('href="%s"' % quotedname)