From 3b85e0c3a985427376429a36b81e1aaea55c0887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Mon, 11 Dec 2017 15:10:04 +0100 Subject: [PATCH] simplify test_conftest_found_with_double_dash() test code --- testing/test_conftest.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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*