How to test urllib|urllib2-using code?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Thu Nov 5 03:16:08 EST 2009
En Wed, 04 Nov 2009 10:33:53 -0300, kj <no.email at please.post> escribió:
> I'm sure I could find
> some good answers to my question above if I could look at the test
> suites for urllib and urllib2, but I can't find them anywhere. In
> fact, I don't even know what exactly I should be looking for.)
> Where can I find the equivalent for Python distributions?
Most of the Python test suite is in the "test" subdirectory below the
standard library; on Windows that's c:\PythonNN\Lib\test, on Linux
/usr/lib/pythonN.N/test or /usr/local/...
> dir /s/b test_url*.py
D:\apps\Python26\Lib\test\test_urllib.py
D:\apps\Python26\Lib\test\test_urllib2.py
D:\apps\Python26\Lib\test\test_urllib2net.py
D:\apps\Python26\Lib\test\test_urllib2_localnet.py
D:\apps\Python26\Lib\test\test_urllibnet.py
D:\apps\Python26\Lib\test\test_urlparse.py
--
Gabriel Genellina
More information about the Python-list
mailing list