diff --git a/testing/test_conftest.py b/testing/test_conftest.py index dd54e0c5b..f0f187606 100644 --- a/testing/test_conftest.py +++ b/testing/test_conftest.py @@ -270,11 +270,7 @@ def test_conftest_found_with_double_dash(testdir): parser.addoption("--hello-world", action="store_true") """)) p = sub.join("test_hello.py") - p.write(py.std.textwrap.dedent(""" - import pytest - def test_hello(found): - assert found == 1 - """)) + p.write("def test_hello(): pass") result = testdir.runpytest(str(p) + "::test_hello", "-h") result.stdout.fnmatch_lines(""" *--hello-world*