Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef1e94a

Browse files
committed
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).
1 parent da3f4ae commit ef1e94a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_pipes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def testEmptyPipeline3(self):
8181

8282
def testQuoting(self):
8383
safeunquoted = string.ascii_letters + string.digits + '@%_-+=:,./'
84-
unsafe = '"`$\\!'
84+
unicode_sample = '\xe9\xe0\xdf' # e + acute accent, a + grave, sharp s
85+
unsafe = '"`$\\!' + unicode_sample
8586

8687
self.assertEqual(pipes.quote(''), "''")
8788
self.assertEqual(pipes.quote(safeunquoted), safeunquoted)

0 commit comments

Comments
 (0)