summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-09 21:03:43 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-09 21:03:43 (GMT)
commitef1e94a848533f2e7dbb2ed7a8b2de50e97e4b7f (patch)
treececca09d45efc915d7ff9edb91df3673487657f6 /Lib
parentda3f4ae34b3fc88621b83fcfe5554b878806648e (diff)
downloadcpython-ef1e94a848533f2e7dbb2ed7a8b2de50e97e4b7f.zip
cpython-ef1e94a848533f2e7dbb2ed7a8b2de50e97e4b7f.tar.gz
cpython-ef1e94a848533f2e7dbb2ed7a8b2de50e97e4b7f.tar.bz2
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).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_pipes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pipes.py b/Lib/test/test_pipes.py
index f2b58d5..d5b886f 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)