From: Senthil Kumaran Date: Mon, 12 Sep 2011 22:42:21 +0000 (+0800) Subject: Port the fix for Issue12924 (missing quote_plus) to 2.7 branch. X-Git-Tag: v2.7.3rc1~454 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d4c34c6ecde228c6b4c87ffce136313a85387ab;p=python Port the fix for Issue12924 (missing quote_plus) to 2.7 branch. --- diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 401dd5ca0c..3f644fbea8 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -407,6 +407,7 @@ class QuotingTests(unittest.TestCase): result = urllib.quote(partial_quote) self.assertEqual(expected, result, "using quote(): %s != %s" % (expected, result)) + result = urllib.quote_plus(partial_quote) self.assertEqual(expected, result, "using quote_plus(): %s != %s" % (expected, result)) self.assertRaises(TypeError, urllib.quote, None)