Failing test for issue #2121

This commit is contained in:
Andreas Pelme 2016-12-16 15:29:08 +01:00
parent 3871810d1c
commit ac9c8fcdab
1 changed files with 14 additions and 0 deletions

View File

@ -956,3 +956,17 @@ class TestIssue925(object):
result = testdir.runpytest()
result.stdout.fnmatch_lines('*E*assert True == ((False == True) == True)')
class TestIssue2121():
def test_simple(self, testdir):
testdir.tmpdir.join("tests/file.py").ensure().write("""
def test_simple_failure():
assert 1 + 1 == 3
""")
testdir.tmpdir.join("pytest.ini").write(py.std.textwrap.dedent("""
[pytest]
python_files = tests/**.py
"""))
result = testdir.runpytest()
result.stdout.fnmatch_lines('*E*assert (1 + 1) == 3')