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/deprecated_test.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/deprecated_test.py')
-rw-r--r-- | testing/deprecated_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/deprecated_test.py b/testing/deprecated_test.py index 536370f92..4818379fe 100644 --- a/testing/deprecated_test.py +++ b/testing/deprecated_test.py @@ -147,7 +147,7 @@ def test_pytest_plugins_in_non_top_level_conftest_unsupported_pyargs( if use_pyargs: assert msg not in res.stdout.str() else: - res.stdout.fnmatch_lines("*{msg}*".format(msg=msg)) + res.stdout.fnmatch_lines(["*{msg}*".format(msg=msg)]) def test_pytest_plugins_in_non_top_level_conftest_unsupported_no_top_level_conftest( |