Message104408
| Author |
stutzbach |
| Recipients |
brian.curtin, enolte, loewis, stutzbach, techtonik |
| Date |
2010年04月28日.04:17:00 |
| SpamBayes Score |
0.095577866 |
| Marked as misclassified |
No |
| Message-id |
<1272428222.84.0.722116813556.issue2810@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Thank for the feedback. I'll revise the patch tomorrow based on your code-cleanup suggestions.
To answer your question about the thread and explain why the test sometimes passes:
The goal of test_changing_value is to try to trigger a race condition that exists inside many of these function. So, yes, the thread is necessary. :) Thankfully the functions call Py_BEGIN_ALLOW_THREADS; otherwise, I'd have to launch another process to try to trigger it.
Sometimes we never manage to hit the race condition and the test passes even though the bug is present. I can increase the number of attempts to trigger it (currently "for _ in range(100)") to make it more likely to occur every time the test is run. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年04月28日 04:17:03 | stutzbach | set | recipients:
+ stutzbach, loewis, techtonik, enolte, brian.curtin |
| 2010年04月28日 04:17:02 | stutzbach | set | messageid: <1272428222.84.0.722116813556.issue2810@psf.upfronthosting.co.za> |
| 2010年04月28日 04:17:01 | stutzbach | link | issue2810 messages |
| 2010年04月28日 04:17:00 | stutzbach | create |
|