[Patches] [Patch #101843] Remove all uses of "assert" from the test suite

noreply@sourceforge.net noreply@sourceforge.net
Mon, 9 Oct 2000 07:25:00 -0700


Patch #101843 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: Remove all uses of "assert" from the test suite

Follow-Ups:

Date: 2000-Oct-09 07:25
By: lemburg

Comment:
This patch removes all uses of the assert statement from the
regression test suite. Use of assert in the suite is depreciated
due to asserts being removed from the byte code when Python
is run in optimized mode.

The patch adds a new function to test_support (verify) which
handles the asserts in a more customizable way. It does not
rely on the assert statement.

I have tested this patch lightly (meaning that the suite runs through
just fine). Not all execution paths are testable due to the nature
of the patch, though.

Please review.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101843&group_id=5470