diff options
author | Daniel Hahler <git@thequod.de> | 2019-03-23 11:36:18 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-03-23 11:36:18 +0100 |
commit | 08f3b02dfcfe8f0b41a5c8deb66c897e99196c50 (patch) | |
tree | 14eec90af1e86621e18837cba9b0a59fb94b1c87 /testing/test_config.py | |
parent | 15d608867dfa0fea5de4d9385dd2da8191ec0b8c (diff) | |
download | pytest-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.py | 2 |
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): |