[issue10992] tests failing when run under coverage

2011-02-21 Thread Brett Cannon
Brett Cannon added the comment: 3.3 in r88494 -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue10992] tests failing when run under coverage

2011-01-31 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10992] tests failing when run under coverage

2011-01-28 Thread Brett Cannon
Brett Cannon added the comment: The attached patch has all tests passing when run under coverage.py. Most places are flat-out skipped since there is no good way around the tests short of coding up a second set of test values. Plus editing doctests to have optional values is way too painful, s

[issue10992] tests failing when run under coverage

2011-01-27 Thread Brett Cannon
Brett Cannon added the comment: Attached is a patch for test_descr. I suspect the __locals__ failures will all be the same; simply skip the test when a trace function is set. And thanks for identifying the cause of the failures, Kristian; helps me make sure I am not misdiagnosing the problem.

[issue10992] tests failing when run under coverage

2011-01-27 Thread Brett Cannon
Brett Cannon added the comment: Attached is a patch against test_gc that shows what I think should be done for the tests failing because of refcounts. Basically I added a refcount_test decorator to test.support that skips a decorated test if it is not being run under CPython and otherwise uns

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek added the comment: msg127022 applies to test_gc and not test_descr -- ___ Python tracker ___ ___ Python-bu

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek added the comment: test_metaclass has some doctests failing because of the added __locals__. -- ___ Python tracker ___ ___

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek added the comment: Following tests in test_descr.py fail: test_collect_generations (line 261) test_frame (line 183) test_get_count (line 249) These tests count the number of allocations and a trace function can mess this up. --

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek added the comment: Following tests in test_descr.py fail with both methods: test_iter_items test_iter_keys test_iter_values regrtest -T causes the following test to fail aswell: test_slots The test_iter_* tests fail because __locals__ gets added to the namespace of

[issue10992] tests failing when run under coverage

2011-01-24 Thread Kristian Vlaardingerbroek
Changes by Kristian Vlaardingerbroek : -- nosy: +Kristian.Vlaardingerbroek ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10992] tests failing when run under coverage

2011-01-23 Thread Brett Cannon
New submission from Brett Cannon : A bunch of tests fail when run under coverage (trend seems to be refcount tests). This is to act as a meta-issue to keep track of what tests need to be fixed. [fail under both coverage.py and regrtest -T] test_ctypes test_descr test_gc test_metaclass test_pyd