[New-bugs-announce] [issue22245] test_urllib2_localnet prints out error messages
Antoine Pitrou
report at bugs.python.org
Fri Aug 22 01:33:29 CEST 2014
New submission from Antoine Pitrou:
I get the following error messages in the test suite:
[1/1] test_urllib2_localnet
test_basic_auth_httperror (test.test_urllib2_localnet.BasicAuthTests) ... ----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 44046)
Traceback (most recent call last):
File "/home/antoine/cpython/34/Lib/socketserver.py", line 305, in _handle_request_noblock
self.process_request(request, client_address)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 331, in process_request
self.finish_request(request, client_address)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 344, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/home/antoine/cpython/34/Lib/test/test_urllib2_localnet.py", line 291, in http_server_with_basic_auth_handler
return BasicAuthHandler(*args, **kwargs)
File "/home/antoine/cpython/34/Lib/test/test_urllib2_localnet.py", line 212, in __init__
http.server.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 669, in __init__
self.handle()
File "/home/antoine/cpython/34/Lib/http/server.py", line 398, in handle
self.handle_one_request()
File "/home/antoine/cpython/34/Lib/http/server.py", line 387, in handle_one_request
self.wfile.flush() #actually send the response if not already done.
ValueError: I/O operation on closed file.
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 44047)
Traceback (most recent call last):
File "/home/antoine/cpython/34/Lib/socketserver.py", line 305, in _handle_request_noblock
self.process_request(request, client_address)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 331, in process_request
self.finish_request(request, client_address)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 344, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/home/antoine/cpython/34/Lib/test/test_urllib2_localnet.py", line 291, in http_server_with_basic_auth_handler
return BasicAuthHandler(*args, **kwargs)
File "/home/antoine/cpython/34/Lib/test/test_urllib2_localnet.py", line 212, in __init__
http.server.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 669, in __init__
self.handle()
File "/home/antoine/cpython/34/Lib/http/server.py", line 398, in handle
self.handle_one_request()
File "/home/antoine/cpython/34/Lib/http/server.py", line 387, in handle_one_request
self.wfile.flush() #actually send the response if not already done.
ValueError: I/O operation on closed file.
----------------------------------------
ok
test_basic_auth_success (test.test_urllib2_localnet.BasicAuthTests) ... ----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 60893)
Traceback (most recent call last):
File "/home/antoine/cpython/34/Lib/socketserver.py", line 305, in _handle_request_noblock
self.process_request(request, client_address)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 331, in process_request
self.finish_request(request, client_address)
Exception happened during processing of request from ('127.0.0.1', 60894)
Traceback (most recent call last):
File "/home/antoine/cpython/34/Lib/socketserver.py", line 305, in _handle_request_noblock
self.process_request(request, client_address)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 331, in process_request
self.finish_request(request, client_address)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 344, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/home/antoine/cpython/34/Lib/test/test_urllib2_localnet.py", line 291, in http_server_with_basic_auth_handler
return BasicAuthHandler(*args, **kwargs)
File "/home/antoine/cpython/34/Lib/test/test_urllib2_localnet.py", line 212, in __init__
http.server.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
File "/home/antoine/cpython/34/Lib/socketserver.py", line 669, in __init__
self.handle()
File "/home/antoine/cpython/34/Lib/http/server.py", line 398, in handle
self.handle_one_request()
File "/home/antoine/cpython/34/Lib/http/server.py", line 387, in handle_one_request
self.wfile.flush() #actually send the response if not already done.
ValueError: I/O operation on closed file.
----------------------------------------
ok
It seems they were introduced by 30e8a8f22a2a.
----------
components: Tests
messages: 225622
nosy: orsenthil, pitrou
priority: normal
severity: normal
status: open
title: test_urllib2_localnet prints out error messages
type: behavior
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22245>
_______________________________________
More information about the New-bugs-announce
mailing list