[py-dev] Bug in assert statement
Ian Bicking
ianb at colorstudy.com
Mon May 16 00:23:53 CEST 2005
When you do something like:
assert 0, dir(module)
You get an exception from the assert reinterpretation. Asserting with a
non-string message normally works fine.
I've also noticed a problem when your assert statement contains an
object who's __repr__ returns a string with a newline in it.
I've put a test in the repository at
http://codespeak.net/svn/user/ianb/py_test_assert_failure/test_asserts.py
--
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Pytest-dev
mailing list