BIND 10 #3014: MsgQ unit tests fail under OS-X attempting to use select.poll
BIND 10 Development
do-not-reply at isc.org
Tue Jun 25 20:05:22 UTC 2013
#3014: MsgQ unit tests fail under OS-X attempting to use select.poll
--------------------------------------+----------------------------------
Reporter: tmark | Owner:
Type: defect | Status: new
Priority: high | Milestone: New Tasks
Component: msgq | Keywords:
CVSS Scoring: | Sensitive: 0
Defect Severity: N/A | Sub-Project: DNS
Feature Depending on Ticket: | Estimated Difficulty: 0
Add Hours to Ticket: 0 | Total Hours: 0
Internal?: 0 |
--------------------------------------+----------------------------------
The two tests that fail both use the function
MsgQTest:notifications_setup. This function sets MsqQ.poller to
FakePoller. This causes MsgQ code proper to attempt to use select.poll
which does not exist in Python under OS-X (at least not Python 3.1.4).
Failed test output is shown below:
{{{
======================================================================
ERROR: test_notifies (__main__.MsgQTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/tmark/ddns/build/trac3007/bind10/src/bin/msgq/tests/msgq_test.py",
line 308, in test_notifies
self.__msgq.register_socket(sock)
File "/Users/tmark/ddns/build/trac3007/bind10/src/bin/msgq/msgq.py",
line 375, in register_socket
self.poller.register(newsocket, select.POLLIN)
AttributeError: 'module' object has no attribute 'POLLIN'
==================================================================
ERROR: test_notifies_implicit_kill (__main__.MsgQTest)
------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/tmark/ddns/build/trac3007/bind10/src/bin/msgq/tests/msgq_test.py",
line 351, in test_notifies_implicit_kill
self.__msgq.register_socket(sock)
File "/Users/tmark/ddns/build/trac3007/bind10/src/bin/msgq/msgq.py",
line 375, in register_socket
self.poller.register(newsocket, select.POLLIN)
AttributeError: 'module' object has no attribute 'POLLIN'
------------------------------------------------------------------
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/3014>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list