diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-05-09 15:50:25 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-05-09 15:50:25 (GMT) |
commit | e3e61049a5e9af000d0532810e22d808940871e7 (patch) | |
tree | e624ad80050b12ad9b7e65855425f1f8367f8c2a /Lib | |
parent | c116b82b773fac82b1228775fc5bdabcac8562ad (diff) | |
download | cpython-e3e61049a5e9af000d0532810e22d808940871e7.zip cpython-e3e61049a5e9af000d0532810e22d808940871e7.tar.gz cpython-e3e61049a5e9af000d0532810e22d808940871e7.tar.bz2 |
Trivial tests of urllib2 for recent SF bug
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/output/test_urllib2 | 1 | ||||
-rw-r--r-- | Lib/test/test_urllib2.py | 17 |
2 files changed, 18 insertions, 0 deletions
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() + |