summaryrefslogtreecommitdiff
path: root/testing/test_config.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-03-23 11:36:18 +0100
committerDaniel Hahler <git@thequod.de>2019-03-23 11:36:18 +0100
commit08f3b02dfcfe8f0b41a5c8deb66c897e99196c50 (patch)
tree14eec90af1e86621e18837cba9b0a59fb94b1c87 /testing/test_config.py
parent15d608867dfa0fea5de4d9385dd2da8191ec0b8c (diff)
downloadpytest-08f3b02dfcfe8f0b41a5c8deb66c897e99196c50.tar.gz
tests: fnmatch_lines: use list
For strings fnmatch_lines converts it into a Source objects, splitted on newlines. This is not necessary here, and it is more consistent to use lists here in the first place.
Diffstat (limited to 'testing/test_config.py')
-rw-r--r--testing/test_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/test_config.py b/testing/test_config.py
index 57cbd10ee..07654e5ad 100644
--- a/testing/test_config.py
+++ b/testing/test_config.py
@@ -805,7 +805,7 @@ def test_collect_pytest_prefix_bug_integration(testdir):
"""Integration test for issue #3775"""
p = testdir.copy_example("config/collect_pytest_prefix")
result = testdir.runpytest(p)
- result.stdout.fnmatch_lines("* 1 passed *")
+ result.stdout.fnmatch_lines(["* 1 passed *"])
def test_collect_pytest_prefix_bug(pytestconfig):