Skip to content

Instantly share code, notes, and snippets.

@startling
Created December 27, 2011 01:38
Show Gist options
  • Save startling/1522518 to your computer and use it in GitHub Desktop.
Save startling/1522518 to your computer and use it in GitHub Desktop.
Errors when you `cytoplasm test` under python 3.
^CProcess Process-1:
Traceback (most recent call last):
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/multiprocessing/process.py", line 259, in _bootstrap
self.run()
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/server.py", line 81, in serve
httpd.handle_request()
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/socketserver.py", line 265, in handle_request
fd_sets = select.select([self], [], [], timeout)
KeyboardInterrupt
E
======================================================================
ERROR: test.TestEmpty.copy_html_test
----------------------------------------------------------------------
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 48, in copy_html_test
in_source_dir = [file for file in self.directory if list(filter(file))]
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 48, in <listcomp>
in_source_dir = [file for file in self.directory if list(filter(file))]
TypeError: 'bool' object is not iterable
======================================================================
ERROR: test.TestSomeHTML.copy_html_test
----------------------------------------------------------------------
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 48, in copy_html_test
in_source_dir = [file for file in self.directory if list(filter(file))]
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 48, in <listcomp>
in_source_dir = [file for file in self.directory if list(filter(file))]
TypeError: 'bool' object is not iterable
======================================================================
ERROR: test.TestSomeHTML.test_rebuilding_server
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/multiprocessing/synchronize.py", line 246, in wait
ret = self._wait_semaphore.acquire(True, timeout)
KeyboardInterrupt
During handling of the above exception, another exception occurred:
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)
File "/Users/tim/Code/cytoplasm_dir/cytoplasm/cytoplasm/test.py", line 101, in server_check
event.wait()
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/multiprocessing/synchronize.py", line 338, in wait
self._cond.wait(timeout)
File "/Users/tim/.pythonbrew/pythons/Python-3.2/lib/python3.2/multiprocessing/synchronize.py", line 254, in wait
return ret
UnboundLocalError: local variable 'ret' referenced before assignment
======================================================================
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 180.746s
FAILED (errors=3, failures=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment