At 03:22 PM 6/10/2006 -0400, Tim Peters wrote:
>This may be because compare_generic_iter() uses `assert` statements,
>and those vanish under -O. If so, a test shouldn't normally use
>`assert`. On rare occasions it's appropriate, like test_struct's:
>
> if x < 0:
> expe
Just noticed that, at least on Windows, test_wsgiref fails when Python
is run with -O (but passes without -O):
$ python -O -E -tt ../Lib/test/regrtest.py -v test_wsgiref
test_wsgiref
testAbstractMethods (test.test_wsgiref.HandlerTests) ... ok
testBasicErrorOutput (test.test_wsgiref.HandlerTests) .
The checked-in code substantially matches the public 0.1 release of
wsgiref. There are some minor changes to the docs and the test module, but
these have also been made in the SVN trunk of wsgiref's home repository, so
that future releases don't diverge too much. The plan is to continue to
ma