You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
assert reinterpretation fails for some code layouts #1
#!python
def test_assert():
result = None
assert result == [
(None, [ 'some text\n', 'more text\n']),
]
the given output is
$ py.test test_assert.py
============================= test session starts ==============================
platform linux2 -- Python 2.6.6 -- pytest-2.0.0dev0
test path 1: test_assert.py
test_assert.py F
=================================== FAILURES ===================================
_________________________________ test_assert __________________________________
def test_assert():
result = None
assert result == [
> (None, [ 'some text\n', 'more text\n']),
E AssertionError: (assertion failed, but when it was re-run for printing intermediate values, it did not fail. Suggestions: compute assert expression before the assert or use --no-assert)
test_assert.py:5: AssertionError
=========================== 1 failed in 0.20 seconds ===========================
Original comment byholger krekel (BitBucket: hpk42, GitHub: hpk42):
think this is fixed now in py-1.4.0.dev3 with an improved heuristic (and don't think this used to work for the old assertion code but maybe i am missing something).
Activity
pytestbot commentedon Oct 10, 2010
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt):
note
pytestbot commentedon Nov 23, 2010
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):
think this is fixed now in py-1.4.0.dev3 with an improved heuristic (and don't think this used to work for the old assertion code but maybe i am missing something).
Merge pull request #1 from kvas-it/features
Add "check-manifest" to linting and remove unused scripts from root
Add keywords to setup.py as suggested by pyroma
Merge pull request #1 from discdiver/discdiver-patch-1
Merge pull request #1 from pytest-dev/master
Merge pull request #1 from Vijay-Arora/Vijay-Arora-patch-1