Skip to content

Commit f083f7f

Browse files
committed
Failing test for issue pytest-dev#2121
1 parent 9477f59 commit f083f7f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

testing/test_assertrewrite.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,3 +921,17 @@ def test_ternary_display():
921921
result = testdir.runpytest()
922922
result.stdout.fnmatch_lines('*E*assert True == ((False == True) == True)')
923923

924+
925+
class TestIssue2121():
926+
def test_simple(self, testdir):
927+
testdir.tmpdir.join("tests/file.py").ensure().write("""
928+
def test_simple_failure():
929+
assert 1 + 1 == 3
930+
""")
931+
testdir.tmpdir.join("pytest.ini").write(py.std.textwrap.dedent("""
932+
[pytest]
933+
python_files = tests/**.py
934+
"""))
935+
936+
result = testdir.runpytest()
937+
result.stdout.fnmatch_lines('*E*assert (1 + 1) == 3')

0 commit comments

Comments
 (0)