[issue6419] Broken test_kqueue.py on OpenBSD
Henry Precheur
report at bugs.python.org
Sat Jul 4 23:23:01 CEST 2009
New submission from Henry Precheur <henry at precheur.org>:
A kqueue's test doesn't pass on OpenBSD 4.6-beta, 4.4, & 4.5:
FAILED (failures=1)
Traceback (most recent call last):
File "Lib/test/test_kqueue.py", line 186, in <module>
test_main()
File "Lib/test/test_kqueue.py", line 183, in test_main
support.run_unittest(TestKQueue)
File "/home/henry/py3k/Lib/test/support.py", line 882, in run_unittest
_run_suite(suite)
File "/home/henry/py3k/Lib/test/support.py", line 865, in _run_suite
raise TestFailed(err)
test.support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_kqueue.py", line 119, in test_queue_event
(server.fileno(), select.KQ_FILTER_WRITE, flags)])
AssertionError: Lists differ: [(6, -2, 5), (7, -2, 5)] != [(6, -2, 0),
(7, -2, 0)]
First differing element 0:
(6, -2, 5)
(6, -2, 0)
- [(6, -2, 5), (7, -2, 5)]
? ^ ^
+ [(6, -2, 0), (7, -2, 0)]
? ^ ^
It looks like OpenBSD behaves like Darwin. The attached patch fixes the
test.
----------
files: patch-Lib_test_test_kqueue_py
messages: 90127
nosy: henry.precheur
severity: normal
status: open
title: Broken test_kqueue.py on OpenBSD
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14449/patch-Lib_test_test_kqueue_py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6419>
_______________________________________
More information about the Python-bugs-list
mailing list