New package python-pytest-flakes OBS-URL: https://build.opensuse.org/request/show/641089 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-flakes?expand=0&rev=1
36 lines
977 B
Diff
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):
|