diff options
author | Éric Araujo <merwok@netwok.org> | 2011-08-09 23:03:43 +0200 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-08-09 23:03:43 +0200 |
commit | ef1e94a848533f2e7dbb2ed7a8b2de50e97e4b7f (patch) | |
tree | cecca09d45efc915d7ff9edb91df3673487657f6 | |
parent | da3f4ae34b3fc88621b83fcfe5554b878806648e (diff) | |
download | cpython-git-ef1e94a848533f2e7dbb2ed7a8b2de50e97e4b7f.tar.gz |
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).
-rw-r--r-- | Lib/test/test_pipes.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |