Charles-François Natali <[email protected]> added the comment:
Here's another failure due to the same type of race:
"""
======================================================================
FAIL: test_queue (test.test_sched.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\Buildslave\3.x.moore-windows\build\lib\test\test_sched.py", line 74,
in test_queue
self.assertEqual(list(scheduler.queue), [e1, e2, e3, e4, e5])
AssertionError: Lists differ: [Event(time=1328544857.025, pr... !=
[Event(time=1328544857.025, pr...
First differing element 2:
Event(time=1328544857.055, priority=1, action=<function
TestCase.test_queue.<locals>.<lambda> at 0x04C072D8>, argument=[], kwargs={})
Event(time=1328544857.0609999, priority=1, action=<function
TestCase.test_queue.<locals>.<lambda> at 0x04C072D8>, argument=[], kwargs={})
Diff is 836 characters long. Set self.maxDiff to None to see it.
"""
Here's a patch that:
- increases the timeouts for test_enter
- converts other tests to use enterabs() instead of enter()
It should fix all those failures.
----------
components: +Tests
keywords: +needs review, patch
versions: +Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file24439/test_sched_race.diff
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13878>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com