fix test related to "not in"

This commit is contained in:
holger krekel 2011-01-27 11:36:12 +01:00
parent 709d5e3f2c
commit adacd3491d
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ Changes between 2.0.0 and 2.0.1.devX
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)

View File

@ -116,8 +116,7 @@ class TestAssert_reprcompare:
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):