Bugs item #1529297, was opened at 2006-07-26 15:02 Message generated for change (Comment added) made by macquigg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1529297&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: Python 2.5 Status: Open Resolution: None Priority: 5 Submitted By: David MacQuigg (macquigg) Assigned to: Nobody/Anonymous (nobody) Summary: unrelated variable messing up doctests Initial Comment: Version 2.5b2 with IDLE 1.2b2 running on Windows XP Home, fully updated. Unpack the attached zip file. Open program.py, test_suite.py, in separate IDLE windows. Run test_suite.py. 8 passed and 0 failed. Now add a variable at the top of program.py, any name will do. xyz = 2 Re-run test_suite.py. 7 passed and 1 failed !! I haven't been able to isolate the problem, but it is repeatable. Taking out blocks of unrelated statements changes the behavior. Feels like a memory allocation error, or something strange. ---------------------------------------------------------------------- >Comment By: David MacQuigg (macquigg) Date: 2006-07-27 08:22 Message: Logged In: YES user_id=676422 On my Redhat Linux machine, I see the failure in 2.4.1, but not in 2.3.4. Trying to isolate the problem, I've commented out some blocks of unrelated code, but I can't get very far with this, because many of the deletions make the problem go away. It's as if the problem depends on the exact position in memory of the test variable. I did manage to delete the DNS queries, so now you can run the tests without intermittent failures due to DNS timeouts. I'll keep the latest at http://www.open- mail.org/test/test_0607nn.tgz Thanks for your efforts. ---------------------------------------------------------------------- Comment By: A.M. Kuchling (akuchling) Date: 2006-07-27 05:15 Message: Logged In: YES user_id=11375 On a Linux machine, both 2.4.3 and SVN HEAD report 7 tests passed, one failed. For both versions, the failure is: Failed example: _envrcpt('[EMAIL PROTECTED]') Expected: CONTINUE [['[EMAIL PROTECTED]', 50, 2, 75, 101, '']] Got: CONTINUE [['[EMAIL PROTECTED]', 50, 2, 75, 50, '']] ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2006-07-26 20:59 Message: Logged In: YES user_id=33168 Can you try with SVN head? There was an unitialized read that the doctests could trigger. It has been fixed. Perhaps you are running into that? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1529297&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com