-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
type: bugproblem that needs to be addressedproblem that needs to be addressed
Description
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.
Metadata
Metadata
Assignees
Labels
type: bugproblem that needs to be addressedproblem that needs to be addressed