test2.py: switch from urllib to urllib2
urllib2 raises an exception if an HTTP request produces an error code, making the test fail earlier.
Showing
Please
register
or
sign in
to comment
urllib2 raises an exception if an HTTP request produces an error code, making the test fail earlier.