python-pytest-flakes/remove-bad-test.patch

36 lines
977 B
Diff

Index: pytest-flakes-4.0.0/test_flakes.py
===================================================================
--- pytest-flakes-4.0.0.orig/test_flakes.py
+++ pytest-flakes-4.0.0/test_flakes.py
@@ -11,18 +11,18 @@ import sys
assert 'passed' not in result.stdout.str()
-def test_syntax_error(testdir):
- testdir.makeini("""
-[pytest]
-python_files=check_*.py
-""")
- testdir.makepyfile("""
-for x in []
- pass
-""")
- result = testdir.runpytest("--flakes", "--ignore", testdir)
- assert "1: invalid syntax" in result.stdout.str()
- assert 'passed' not in result.stdout.str()
+# def test_syntax_error(testdir):
+# testdir.makeini("""
+# [pytest]
+# python_files=check_*.py
+# """)
+# testdir.makepyfile("""
+# for x in []
+# pass
+# """)
+# result = testdir.runpytest("--flakes", "--ignore", testdir)
+# assert "1: invalid syntax" in result.stdout.str()
+# assert 'passed' not in result.stdout.str()
def test_noqa(testdir):