From: Éric Araujo Date: Tue, 9 Aug 2011 21:03:43 +0000 (+0200) Subject: Test pipes.quote with a few non-ASCII characters (see #9723). X-Git-Tag: v3.2.2rc1~11^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef1e94a848533f2e7dbb2ed7a8b2de50e97e4b7f;p=python Test pipes.quote with a few non-ASCII characters (see #9723). That pipes.quote thinks all non-ASCII characters need to be quoted may be a bug, but right now I’m committing this test to make sure I haven’t introduced a behavior change in 3.3 when I simplified the code to use a regex (in 5966eeb0457d). --- diff --git a/Lib/test/test_pipes.py b/Lib/test/test_pipes.py index f2b58d5e3d..d5b886f87e 100644 --- a/Lib/test/test_pipes.py +++ b/Lib/test/test_pipes.py @@ -81,7 +81,8 @@ class SimplePipeTests(unittest.TestCase): def testQuoting(self): safeunquoted = string.ascii_letters + string.digits + '@%_-+=:,./' - unsafe = '"`$\\!' + unicode_sample = '\xe9\xe0\xdf' # e + acute accent, a + grave, sharp s + unsafe = '"`$\\!' + unicode_sample self.assertEqual(pipes.quote(''), "''") self.assertEqual(pipes.quote(safeunquoted), safeunquoted)