[issue16843] sporadic test_sched failure

2013-01-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue16843] sporadic test_sched failure

2013-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab36d3bb5996 by Serhiy Storchaka in branch '3.3': Issue #16843: Make concurrent tests for sched module deterministic. http://hg.python.org/cpython/rev/ab36d3bb5996 New changeset f65eae38f71e by Serhiy Storchaka in branch 'default': Issue #16843: Mak

[issue16843] sporadic test_sched failure

2013-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Perhaps you should give it to Guido as a present? First I have to find some application for it. Wait for me at the 3013 year. -- ___ Python tracker ___

[issue16843] sporadic test_sched failure

2013-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Actually this class is a > forward-running time-machine with pause. Perhaps you should give it to Guido as a present? -- ___ Python tracker

[issue16843] sporadic test_sched failure

2013-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I don't understand what you're gaining with this complicated class: your > class guarantees that the sleepers will be woken up, but it doesn't > guarantee that any user code will actually run. It guarantees that advance() returns only when all sleepers are s

[issue16843] sporadic test_sched failure

2013-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The previous patch is broken, here is a fixed, more complicated, > patch. May be this class would be useful in other tests. I don't understand what you're gaining with this complicated class: your class guarantees that the sleepers will be woken up, but it doe

[issue16843] sporadic test_sched failure

2013-01-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The previous patch is broken, here is a fixed, more complicated, patch. May be this class would be useful in other tests. -- Added file: http://bugs.python.org/file28588/test_sched_deterministic_timer_2.patch ___

[issue16843] sporadic test_sched failure

2013-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for the deterministic version. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue16843] sporadic test_sched failure

2013-01-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16843] sporadic test_sched failure

2013-01-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a second way patch. It adds a deterministic non-realtime timer. -- assignee: serhiy.storchaka -> stage: -> patch review Added file: http://bugs.python.org/file28552/test_sched_deterministic_timer.patch __

[issue16843] sporadic test_sched failure

2013-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a test only issue. There are two ways to fix this test. On first simple way we can just increase the timing and hope for a luck. On second more complicated way we should use custom deterministic time and sleep functions. Here is a first way patch to

[issue16843] sporadic test_sched failure

2013-01-02 Thread Antoine Pitrou
New submission from Antoine Pitrou: Just got this: [255/372/1] test_sched Warning -- threading._dangling was modified by test_sched test test_sched failed -- Traceback (most recent call last): File "/home/antoine/cpython/default/Lib/test/test_sched.py", line 83, in test_cancel_concurrent