]> granicus.if.org Git - python/commitdiff
Port the fix for Issue12924 (missing quote_plus) to 2.7 branch.
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 12 Sep 2011 22:42:21 +0000 (06:42 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Mon, 12 Sep 2011 22:42:21 +0000 (06:42 +0800)
Lib/test/test_urllib.py

index 401dd5ca0cbc97181bbd50e7cfc9151437d40b9b..3f644fbea800adc5b37cf6032a0c980219c9034d 100644 (file)
@@ -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)