Steve P added the comment: I got "test_bad_address" from what was reported using "make test". Perhaps at I read the log wrong, but it was clear I got a failure. At any rate, here's what I get with the correct test name:
sp@chip:~/Downloads/Python-3.4.2 $ ./python -m test -v -u network > test_urllib2_localnet > == CPython 3.4.2 (default, Oct 14 2014, 15:34:15) [GCC 4.6.3] > == Linux-3.2.0-23-generic-i686-with-debian-wheezy-sid little-endian > == hash algorithm: siphash24 32bit > == /home/sp/Downloads/Python-3.4.2/build/test_python_16076 > Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, > optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, > ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, > hash_randomization=1, isolated=0) > [1/1] test_urllib2_localnet > test_basic_auth_httperror (test.test_urllib2_localnet.BasicAuthTests) ... > ok > test_basic_auth_success (test.test_urllib2_localnet.BasicAuthTests) ... ok > test_proxy_qop_auth_int_works_or_throws_urlerror > (test.test_urllib2_localnet.ProxyAuthTests) ... ok > test_proxy_qop_auth_works (test.test_urllib2_localnet.ProxyAuthTests) ... > ok > test_proxy_with_bad_password_raises_httperror > (test.test_urllib2_localnet.ProxyAuthTests) ... ok > test_proxy_with_no_password_raises_httperror > (test.test_urllib2_localnet.ProxyAuthTests) ... ok > test_200 (test.test_urllib2_localnet.TestUrlopen) ... ok > test_200_with_parameters (test.test_urllib2_localnet.TestUrlopen) ... ok > test_404 (test.test_urllib2_localnet.TestUrlopen) ... ok > test_bad_address (test.test_urllib2_localnet.TestUrlopen) ... FAIL > test_basic (test.test_urllib2_localnet.TestUrlopen) ... ok > test_chunked (test.test_urllib2_localnet.TestUrlopen) ... ok > test_geturl (test.test_urllib2_localnet.TestUrlopen) ... ok > test_https (test.test_urllib2_localnet.TestUrlopen) ... stopping HTTPS > server > joining HTTPS thread > ok > test_https_sni (test.test_urllib2_localnet.TestUrlopen) ... stopping HTTPS > server > joining HTTPS thread > ok > test_https_with_cadefault (test.test_urllib2_localnet.TestUrlopen) ... Got > an error: > [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:600) > stopping HTTPS server > joining HTTPS thread > ok > test_https_with_cafile (test.test_urllib2_localnet.TestUrlopen) ... Got an > error: > [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:600) > stopping HTTPS server > joining HTTPS thread > stopping HTTPS server > joining HTTPS thread > ok > test_info (test.test_urllib2_localnet.TestUrlopen) ... ok > test_iteration (test.test_urllib2_localnet.TestUrlopen) ... ok > test_line_iteration (test.test_urllib2_localnet.TestUrlopen) ... ok > test_redirection (test.test_urllib2_localnet.TestUrlopen) ... ok > test_sending_headers (test.test_urllib2_localnet.TestUrlopen) ... ok > > ====================================================================== > FAIL: test_bad_address (test.test_urllib2_localnet.TestUrlopen) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/home/sp/Downloads/Python-3.4.2/Lib/test/test_urllib2_localnet.py", line > 655, in test_bad_address > "http://sadflkjsasf.i.nvali.d./") > AssertionError: OSError not raised by urlopen > > ---------------------------------------------------------------------- > Ran 22 tests in 5.260s > > FAILED (failures=1) > test test_urllib2_localnet failed > 1 test failed: > test_urllib2_localnet > On Tue, Oct 14, 2014 at 4:56 PM, Ned Deily <rep...@bugs.python.org> wrote: > > Ned Deily added the comment: > > I'm not sure what you are trying to do but there is no test module named > test_bad_address in the standard library, which is why you get that error. > Doing a quick search of Lib/test shows three different cases of > test_bad_address: in the test_ipaddress, test_urllib2_localnet, and > test_urllibnet modules. If you want to just run those tests, you'd need to > specify the module names. Plus two of them require network access so > you'll need to enable the "network" test resource. Try something like: > > ./python -m test -v -u network test_ipaddress test_urllib2_localnet > test_urllibnet > > ---------- > nosy: +ned.deily > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue22639> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22639> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com