• Martin Panter's avatar
    Issue #21069: Move test_fileno() from test_urllibnet and rewrite it · d979b2cf
    Martin Panter authored
    * No longer attempts to close already freed socket file descriptor
    * Use socket object to be compatible with Windows
    * Do not use a timeout to avoid complication with non-blocking mode
    * Use internal localhost server rather than depending on a third party
    * Avoid trouble with buffered HTTP data by testing tunnelled CONNECT data
    d979b2cf
test_httplib.py 63.4 KB