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
Originally reported by: Michał Bartoszkiewicz (BitBucket: embe, GitHub: embe)
Assertion rewriting seems inactive in modules that reside in a package.
pkg/test_foo.py, containing:
#!python
from StringIO import StringIO
def test_foo():
s = StringIO('foo')
assert s.read() == ''
fails with "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 --assert=plain)" when pkg/init.py exists, but with "assert 'foo' == ''" when it is deleted.
Originally reported by: Michał Bartoszkiewicz (BitBucket: embe, GitHub: embe)
Assertion rewriting seems inactive in modules that reside in a package.
pkg/test_foo.py, containing:
fails with "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 --assert=plain)" when pkg/init.py exists, but with "assert 'foo' == ''" when it is deleted.
The text was updated successfully, but these errors were encountered: