diff options
author | Facundo Batista <facundobatista@gmail.com> | 2008-07-07 18:24:11 (GMT) |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2008-07-07 18:24:11 (GMT) |
commit | 2ac5de2a56f74026d3f82e014e564b884d06c8f2 (patch) | |
tree | 26bb79f8cf89b2fe182c30297b8ed4117d781899 /Lib/test/test_urlparse.py | |
parent | 9f2f83338f54a769497fd122e86170aa58cf5603 (diff) | |
download | cpython-2ac5de2a56f74026d3f82e014e564b884d06c8f2.zip cpython-2ac5de2a56f74026d3f82e014e564b884d06c8f2.tar.gz cpython-2ac5de2a56f74026d3f82e014e564b884d06c8f2.tar.bz2 |
Issue 3314. The sys module is used in an error case.
Diffstat (limited to 'Lib/test/test_urlparse.py')
-rw-r--r-- | Lib/test/test_urlparse.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py index c92b5aa..dbb7c36 100644 --- a/Lib/test/test_urlparse.py +++ b/Lib/test/test_urlparse.py @@ -310,6 +310,10 @@ class UrlParseTestCase(unittest.TestCase): self.assertEqual(urllib.parse.urlparse("http://example.com?blahblah=/foo"), ('http', 'example.com', '', '', 'blahblah=/foo', '')) + def test_usingsys(self): + # Issue 3314: sys module is used in the error + self.assertRaises(TypeError, urllib.parse.urlencode, "foo") + def test_main(): support.run_unittest(UrlParseTestCase) |