From e3e61049a5e9af000d0532810e22d808940871e7 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Wed, 9 May 2001 15:50:25 +0000 Subject: Trivial tests of urllib2 for recent SF bug --- Lib/test/output/test_urllib2 | 1 + Lib/test/test_urllib2.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 Lib/test/output/test_urllib2 create mode 100644 Lib/test/test_urllib2.py diff --git a/Lib/test/output/test_urllib2 b/Lib/test/output/test_urllib2 new file mode 100644 index 0000000..4c4d6ab --- /dev/null +++ b/Lib/test/output/test_urllib2 @@ -0,0 +1 @@ +test_urllib2 diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py new file mode 100644 index 0000000..d2af276 --- /dev/null +++ b/Lib/test/test_urllib2.py @@ -0,0 +1,17 @@ +from test_support import verify +import urllib2 + +# A couple trivial tests + +try: + urllib2.urlopen('bogus url') +except ValueError: + pass +else: + verify(0) + +file_url = "file://%s" % urllib2.__file__ +f = urllib2.urlopen(file_url) +buf = f.read() +f.close() + -- cgit v0.12