This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rpointel
Recipients henry.precheur, mark.dickinson, neologix, rpointel, skrah, vstinner
Date 2011-08-25.06:57:43
SpamBayes Score 2.5440226e-05
Marked as misclassified No
Message-id <1314255464.92.0.0902644090305.issue6419@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,
I think this issue is relied to issue 12181.

I have made tests.

################
1)with no patch:
################
testPair (__main__.TestKQueue) ... ok
test_create_event (__main__.TestKQueue) ... FAIL
test_create_queue (__main__.TestKQueue) ... ok
test_queue_event (__main__.TestKQueue) ... FAIL

======================================================================
FAIL: test_create_event (__main__.TestKQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 28, in test_create_event
    self.assertEqual(ev.ident, fd)
AssertionError: 562945658454018L != 2

======================================================================
FAIL: test_queue_event (__main__.TestKQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 129, in test_queue_event
    (server.fileno(), select.KQ_FILTER_WRITE, flags)])
AssertionError: Lists differ: [(1688841270329350L, -2, 5L), ... != [(6, -2, 0), (7, -2, 0)]

First differing element 0:
(1688841270329350L, -2, 5L)
(6, -2, 0)

- [(1688841270329350L, -2, 5L), (1688841270329351L, -2, 5L)]
+ [(6, -2, 0), (7, -2, 0)]

----------------------------------------------------------------------
Ran 4 tests in 0.002s

FAILED (failures=2)
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 196, in <module>
    test_main()
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 193, in test_main
    test_support.run_unittest(TestKQueue)
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py", line 1087, in run_unittest
    _run_suite(suite)
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py", line 1070, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: multiple errors occurred

#####################################
2)with patch-Lib_test_test_kqueue_py:
#####################################
testPair (__main__.TestKQueue) ... ok
test_create_event (__main__.TestKQueue) ... FAIL
test_create_queue (__main__.TestKQueue) ... ok
test_queue_event (__main__.TestKQueue) ... FAIL

======================================================================
FAIL: test_create_event (__main__.TestKQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 28, in test_create_event
    self.assertEqual(ev.ident, fd)
AssertionError: 562945658454018L != 2

======================================================================
FAIL: test_queue_event (__main__.TestKQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 130, in test_queue_event
    (server.fileno(), select.KQ_FILTER_WRITE, flags)])
AssertionError: Lists differ: [(1688841270329350L, -2, 5L), ... != [(6, -2, 5), (7, -2, 5)]

First differing element 0:
(1688841270329350L, -2, 5L)
(6, -2, 5)

- [(1688841270329350L, -2, 5L), (1688841270329351L, -2, 5L)]
+ [(6, -2, 5), (7, -2, 5)]

----------------------------------------------------------------------
Ran 4 tests in 0.002s

FAILED (failures=2)
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 197, in <module>
    test_main()
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 194, in test_main
    test_support.run_unittest(TestKQueue)
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py", line 1087, in run_unittest
    _run_suite(suite)
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py", line 1070, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: multiple errors occurred

#####################################################
3)with patch-Modules_selectmodule_c (see issue 12181)
#####################################################
testPair (__main__.TestKQueue) ... ok
test_create_event (__main__.TestKQueue) ... ERROR
test_create_queue (__main__.TestKQueue) ... ok
test_queue_event (__main__.TestKQueue) ... FAIL

======================================================================
ERROR: test_create_event (__main__.TestKQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 74, in test_create_event
    ev = select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum)
OverflowError: signed integer is greater than maximum

======================================================================
FAIL: test_queue_event (__main__.TestKQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 129, in test_queue_event
    (server.fileno(), select.KQ_FILTER_WRITE, flags)])
AssertionError: Lists differ: [(6L, -2, 5L), (7L, -2, 5L)] != [(6, -2, 0), (7, -2, 0)]

First differing element 0:
(6L, -2, 5L)
(6, -2, 0)

- [(6L, -2, 5L), (7L, -2, 5L)]
?    -      ^^     -      ^^

+ [(6, -2, 0), (7, -2, 0)]
?          ^           ^


----------------------------------------------------------------------
Ran 4 tests in 0.002s

FAILED (failures=1, errors=1)
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 196, in <module>
    test_main()
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 193, in test_main
    test_support.run_unittest(TestKQueue)
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py", line 1087, in run_unittest
    _run_suite(suite)
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py", line 1070, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: multiple errors occurred

#####################################################################
4)with patch-Modules_selectmodule_c and patch-Lib_test_test_kqueue_py
#####################################################################
BRARY_PATH=/usr/ports/pobj/Python-2.7.1/Python-2.7.1 /usr/ports/pobj/Python-2.7.1/Python-2.7.1/python /usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py
testPair (__main__.TestKQueue) ... ok
test_create_event (__main__.TestKQueue) ... ERROR
test_create_queue (__main__.TestKQueue) ... ok
test_queue_event (__main__.TestKQueue) ... ok

======================================================================
ERROR: test_create_event (__main__.TestKQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 74, in test_create_event
    ev = select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum)
OverflowError: signed integer is greater than maximum

----------------------------------------------------------------------
Ran 4 tests in 0.001s

FAILED (errors=1)
Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 197, in <module>
    test_main()
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 194, in test_main
    test_support.run_unittest(TestKQueue)
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py", line 1087, in run_unittest
    _run_suite(suite)
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_support.py", line 1070, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "/usr/ports/pobj/Python-2.7.1/Python-2.7.1/Lib/test/test_kqueue.py", line 74, in test_create_event
    ev = select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum)
OverflowError: signed integer is greater than maximum


Don't hesitate if you need more informations, but I think we must close issue 12181 before.

Thanks a lot,
Remi.
History
Date User Action Args
2011-08-25 06:57:45rpointelsetrecipients: + rpointel, mark.dickinson, vstinner, henry.precheur, skrah, neologix
2011-08-25 06:57:44rpointelsetmessageid: <1314255464.92.0.0902644090305.issue6419@psf.upfronthosting.co.za>
2011-08-25 06:57:44rpointellinkissue6419 messages
2011-08-25 06:57:43rpointelcreate