summaryrefslogtreecommitdiff
path: root/testing/test_doctest.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_doctest.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_doctest.py')
-rw-r--r--testing/test_doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/test_doctest.py b/testing/test_doctest.py
index 09f7c331d..db6c4c2d3 100644
--- a/testing/test_doctest.py
+++ b/testing/test_doctest.py
@@ -968,7 +968,7 @@ class TestDoctestAutoUseFixtures(object):
"""
)
result = testdir.runpytest("--doctest-modules")
- result.stdout.fnmatch_lines("*2 passed*")
+ result.stdout.fnmatch_lines(["*2 passed*"])
@pytest.mark.parametrize("scope", SCOPES)
@pytest.mark.parametrize("enable_doctest", [True, False])