Fix Issue9301 - urllib.quote(None) to raise TypeError

This commit is contained in:
Senthil Kumaran 2010-07-19 17:35:50 +00:00
parent e9a6a7dd4c
commit c7743aaac3
2 changed files with 3 additions and 0 deletions

View file

@ -413,6 +413,7 @@ class QuotingTests(unittest.TestCase):
"using quote(): %s != %s" % (expected, result))
self.assertEqual(expected, result,
"using quote_plus(): %s != %s" % (expected, result))
self.assertRaises(TypeError, urllib.quote, None)
def test_quoting_space(self):
# Make sure quote() and quote_plus() handle spaces as specified in