Created
December 27, 2011 01:51
-
-
Save startling/1522529 to your computer and use it in GitHub Desktop.
`cytoplasm test` errors, even after workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.....localhost - - [26/Dec/2011 19:48:50] "GET /one.html HTTP/1.1" 200 - | |
FTraceback (most recent call last): | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 284, in _handle_request_noblock | |
self.process_request(request, client_address) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 310, in process_request | |
self.finish_request(request, client_address) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 323, in finish_request | |
self.RequestHandlerClass(request, client_address, self) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 639, in __init__ | |
self.handle() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/server.py", line 395, in handle | |
self.handle_one_request() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/server.py", line 383, in handle_one_request | |
method() | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/server.py", line 52, in do_GET | |
f = self.send_head() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/server.py", line 678, in send_head | |
path = self.translate_path(self.path) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/server.py", line 766, in translate_path | |
path = os.getcwd() | |
OSError: [Errno 2] No such file or directory | |
E | |
====================================================================== | |
ERROR: test.TestSomeHTML.test_rebuilding_server | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/site-packages/nose/case.py", line 198, in runTest | |
self.test(*self.arg) | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 119, in test_rebuilding_server | |
self.server_check(rebuild=True, port=8093) | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 106, in server_check | |
response = urllib.request.urlopen(req) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 138, in urlopen | |
return opener.open(url, data, timeout) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 366, in open | |
response = self._open(req, data) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 384, in _open | |
'_open', req) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 344, in _call_chain | |
result = func(*args) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 1140, in http_open | |
return self.do_open(http.client.HTTPConnection, req) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 1123, in do_open | |
r = h.getresponse() # an HTTPResponse instance | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/client.py", line 1046, in getresponse | |
response.begin() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/client.py", line 346, in begin | |
version, status, reason = self._read_status() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/client.py", line 316, in _read_status | |
raise BadStatusLine(line) | |
http.client.BadStatusLine: '' | |
====================================================================== | |
FAIL: test.TestSomeHTML.test_normal_server | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/site-packages/nose/case.py", line 198, in runTest | |
self.test(*self.arg) | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 115, in test_normal_server | |
self.server_check() | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 109, in server_check | |
assert response.read() == open(os.path.join(self.build_dir, file)).read() | |
AssertionError | |
---------------------------------------------------------------------- | |
Ran 7 tests in 0.679s | |
FAILED (errors=1, failures=1) | |
~/Code/cytoplasm_dir/cytoplasm/cytoplasm ± » cytoplasm test > results.txt | |
.....localhost - - [26/Dec/2011 19:51:00] "GET /one.html HTTP/1.1" 200 - | |
FTraceback (most recent call last): | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 284, in _handle_request_noblock | |
self.process_request(request, client_address) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 310, in process_request | |
self.finish_request(request, client_address) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 323, in finish_request | |
self.RequestHandlerClass(request, client_address, self) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 639, in __init__ | |
self.handle() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/server.py", line 395, in handle | |
self.handle_one_request() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/server.py", line 383, in handle_one_request | |
method() | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/server.py", line 52, in do_GET | |
f = self.send_head() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/server.py", line 678, in send_head | |
path = self.translate_path(self.path) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/server.py", line 766, in translate_path | |
path = os.getcwd() | |
OSError: [Errno 2] No such file or directory | |
E | |
====================================================================== | |
ERROR: test.TestSomeHTML.test_rebuilding_server | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/site-packages/nose/case.py", line 198, in runTest | |
self.test(*self.arg) | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 119, in test_rebuilding_server | |
self.server_check(rebuild=True, port=8093) | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 106, in server_check | |
response = urllib.request.urlopen(req) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 138, in urlopen | |
return opener.open(url, data, timeout) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 366, in open | |
response = self._open(req, data) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 384, in _open | |
'_open', req) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 344, in _call_chain | |
result = func(*args) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 1140, in http_open | |
return self.do_open(http.client.HTTPConnection, req) | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/urllib/request.py", line 1123, in do_open | |
r = h.getresponse() # an HTTPResponse instance | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/client.py", line 1046, in getresponse | |
response.begin() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/client.py", line 346, in begin | |
version, status, reason = self._read_status() | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/http/client.py", line 316, in _read_status | |
raise BadStatusLine(line) | |
http.client.BadStatusLine: '' | |
====================================================================== | |
FAIL: test.TestSomeHTML.test_normal_server | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/site-packages/nose/case.py", line 198, in runTest | |
self.test(*self.arg) | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 115, in test_normal_server | |
self.server_check() | |
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 109, in server_check | |
assert response.read() == open(os.path.join(self.build_dir, file)).read() | |
AssertionError | |
---------------------------------------------------------------------- | |
Ran 7 tests in 1.252s | |
FAILED (errors=1, failures=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment