]> granicus.if.org Git - python/commit
compare_generic_iter(): Fixed the failure of test_wsgiref's testFileWrapper
authorTim Peters <tim.peters@gmail.com>
Sun, 11 Jun 2006 20:52:59 +0000 (20:52 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 11 Jun 2006 20:52:59 +0000 (20:52 +0000)
commit06524b61d05c604543e6d3603dee11425ccff637
treeed8bb651216df9557611d78b8280476b71c748f5
parent896c1ea15e9ec67fd1b33998ba8daaf17528ba31
compare_generic_iter():  Fixed the failure of test_wsgiref's testFileWrapper
when running with -O.

test_simple_validation_error still fails under -O.  That appears to be because
wsgiref's validate.py uses `assert` statements all over the place to check
arguments for sanity.  That should all be changed (it's not a logical error
in the software if a user passes bogus arguments, so this isn't a reasonable
use for `assert` -- checking external preconditions should generally raise
ValueError or TypeError instead, as appropriate).
Lib/test/test_wsgiref.py