]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
Allow tests to pass with -OO by turning some AssertionErrors (the ones that
authorBrian Warner <warner@lothar.com>
Wed, 15 Jul 2009 06:45:10 +0000 (23:45 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 15 Jul 2009 06:45:10 +0000 (23:45 -0700)
commitd8ba8c2eb5d4b1b5de448bc9cebe2c81cde4247d
tree5a8913dfcf49feba8a0bb5d0d5cde821073ac60d
parent760bab7d2c57cde7dd139f1427916da53bfce831
Allow tests to pass with -OO by turning some AssertionErrors (the ones that
we actually exercise during tests) into more specific exceptions, so they
don't get optimized away. The best rule to follow is probably this: if an
exception is worth testing, then it's part of the API, and AssertionError
should never be part of the API. Closes #749.
src/allmydata/client.py
src/allmydata/interfaces.py
src/allmydata/mutable/common.py
src/allmydata/mutable/layout.py
src/allmydata/test/test_mutable.py
src/allmydata/test/test_uri.py
src/allmydata/test/test_web.py
src/allmydata/uri.py
src/allmydata/web/root.py