mitsuhiko/logbook — Issue #43: some tests failed under Python 3 and Fedora 16
Author: cheese
Created: 2011-10-28 08:12:07+00:00
State: open

Python 3.2
logbook 0.3
python3-sqlalchemy-0.7.2-1.fc16.x86_64
python3-zmq-2.1.9-1.fc16.x86_64
python3-execnet-1.0.9-1.fc16.noarch
python3-jinja2-2.6-1.fc16.noarch

======================================================================
ERROR: test_execnet_handler (logbook.testsuite.test_regular.QueuesTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/testsuite/test_regular.py", line 1398, in test_execnet_handler
self.assertEqual(record.msg, 'Execnet works')
AttributeError: 'NoneType' object has no attribute 'msg'

======================================================================
ERROR: test_zeromq_background_thread (logbook.testsuite.test_regular.QueuesTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/testsuite/test_regular.py", line 1308, in test_zeromq_background_thread
handler, subscriber = self._get_zeromq()
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/testsuite/test_regular.py", line 1283, in _get_zeromq
subscriber = ZeroMQSubscriber(uri)
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/queues.py", line 179, in __init__
self.socket.setsockopt(zmq.SUBSCRIBE, '')
File "socket.pyx", line 262, in zmq.core.socket.Socket.setsockopt (zmq/core/socket.c:2649)
TypeError: unicode not allowed, use setsockopt_unicode

======================================================================
ERROR: test_zeromq_handler (logbook.testsuite.test_regular.QueuesTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/testsuite/test_regular.py", line 1295, in test_zeromq_handler
handler, subscriber = self._get_zeromq()
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/testsuite/test_regular.py", line 1283, in _get_zeromq
subscriber = ZeroMQSubscriber(uri)
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/queues.py", line 179, in __init__
self.socket.setsockopt(zmq.SUBSCRIBE, '')
File "socket.pyx", line 262, in zmq.core.socket.Socket.setsockopt (zmq/core/socket.c:2649)
TypeError: unicode not allowed, use setsockopt_unicode

======================================================================
FAIL: test_mail_handler (logbook.testsuite.test_regular.HandlerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/testsuite/test_regular.py", line 388, in test_mail_handler
self.assertEqual(len(handler.mails), 1)
AssertionError: 0 != 1

======================================================================
FAIL: test_mail_handler (logbook.testsuite.test_contextmanager.HandlerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cheese/rpmbuild/BUILD/python3-python-logbook-0.3-2.fc16/build/lib.linux-x86_64-3.2/logbook/testsuite/test_contextmanager.py", line 290, in test_mail_handler
self.assertEqual(len(handler.mails), 1)
AssertionError: 0 != 1