1 new changeset in pytest: http://bitbucket.org/hpk42/pytest/changeset/6f471fecb167/ changeset: r2145:6f471fecb167 user: hpk42 date: 2011-01-27 11:36:12 summary: fix test related to "not in" affected #: 2 files (21 bytes)
--- a/CHANGELOG Tue Jan 25 20:47:34 2011 +0000 +++ b/CHANGELOG Thu Jan 27 11:36:12 2011 +0100 @@ -15,7 +15,7 @@ with python3 (now that nose-1.0 supports python3) - remove somewhat surprising "same-conftest" detection because it ignores conftest.py when they appear in several subdirs. -- improve assertions ("not in"), thanks Floris +- improve assertions ("not in"), thanks Floris Bruynooghe - improve behaviour/warnings when running on top of "python -OO" (assertions and docstrings are turned off, leading to potential false positives) --- a/testing/test_assertion.py Tue Jan 25 20:47:34 2011 +0000 +++ b/testing/test_assertion.py Thu Jan 27 11:36:12 2011 +0100 @@ -116,8 +116,7 @@ def test_reprcompare_notin(): detail = plugin.pytest_assertrepr_compare('not in', 'foo', 'aaafoobbb')[1:] - assert '- aaabbb' in detail - assert '+ aaafoobbb' in detail + assert detail == ["'foo' is contained here:", ' aaafoobbb', '? +++'] @needsnewassert def test_pytest_assertrepr_compare_integration(testdir): Repository URL: https://bitbucket.org/hpk42/pytest/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn