Movatterモバイル変換
[0]ホーム
[Python-Dev] Usage of "assert" in regression tests
M.-A. Lemburgmal@lemburg.com
Wed, 17 Jan 2001 22:04:29 +0100
I've just checked in a patch which removes all uses of theassert statement in the regression tests. This makes thetests compatible with the -O mode of Python and also allowscentralizing error reporting (many tests already provide theirown little test function for this purpose).I urge you to only check in tests which use the new APIverify() to verify a certain condition. The API is definedin the regression tools module test_support.Thanks,-- Marc-Andre Lemburg______________________________________________________________________Company:http://www.egenix.com/Consulting:http://www.lemburg.com/Python Pages:http://www.lemburg.com/python/
[8]ページ先頭