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
想要评论请 注册 或 登录
urllib2 raises an exception if an HTTP request produces an error code, making the test fail earlier.