]> granicus.if.org Git - python/commit
Issue #10992: make tests pass when run under coverage.
authorBrett Cannon <bcannon@gmail.com>
Tue, 22 Feb 2011 03:04:06 +0000 (03:04 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 22 Feb 2011 03:04:06 +0000 (03:04 +0000)
commit7a54073a566080f3d7c10871f6ce244c9fc1221b
treec477930f8c868d6bdf9b8e65e7293bc2fdfe21ae
parenteb70e47d85d52e0bafc6b6350b9b627e0b577e96
Issue #10992: make tests pass when run under coverage.

Various tests fail when run under coverage. A primary culprit is refcount tests
which fail as the counts are thrown off by the coverage code. A new decorator
-- test.support.refcount_test -- is used to decorate tests which test refcounts
and to skip them when running under coverage. Other tests simply fail because
of changes in the system (e.g., __local__ suddenly appearing).

Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
13 files changed:
Lib/ctypes/test/test_memfunctions.py
Lib/ctypes/test/test_python_api.py
Lib/ctypes/test/test_refcounts.py
Lib/ctypes/test/test_stringptr.py
Lib/test/support.py
Lib/test/test_descr.py
Lib/test/test_gc.py
Lib/test/test_genexps.py
Lib/test/test_metaclass.py
Lib/test/test_pydoc.py
Lib/test/test_sys.py
Lib/test/test_trace.py
Misc/NEWS