Skip to content

Commit

Permalink
added a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Maximov committed Sep 19, 2016
1 parent 6b56c36 commit 8cba033
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testing/test_assertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,3 +864,15 @@ def test_unicode():
""")
result = testdir.runpytest()
result.stdout.fnmatch_lines(['*AssertionError*'])

def test_issue_1944(testdir):
testdir.makepyfile("""
def f():
return
assert f() == 10
""")
result = testdir.runpytest()
result.stdout.fnmatch_lines(["*1 error*"])
assert "AttributeError: 'Module' object has no attribute '_obj'" not in result.stdout.str()

1 comment on commit 8cba033

@blueyed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a snarky comment from the future: the test name is not very helpful.. ;)

Please sign in to comment.