From e9a67e6702c5780ab1fedf4de327214937590397 Mon Sep 17 00:00:00 2001 From: Edoardo Batini Date: Sat, 23 Jul 2016 23:45:07 +0200 Subject: [PATCH] Adjust test involving FixtureLookupErrorRepr I added a starting 'E' to the expected error messages. The tests were still passing after the previous patch but I think it's better to have stricter tests. --- testing/acceptance_test.py | 2 +- testing/test_capture.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 1b14d12a5..8b7cca205 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -376,7 +376,7 @@ class TestGeneralUsage: res = testdir.runpytest(p) res.stdout.fnmatch_lines([ "*source code not available*", - "*fixture 'invalid_fixture' not found", + "E*fixture 'invalid_fixture' not found", ]) def test_plugins_given_as_strings(self, tmpdir, monkeypatch): diff --git a/testing/test_capture.py b/testing/test_capture.py index 73660692b..ef561ab4f 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -416,9 +416,9 @@ class TestCaptureFixture: result = testdir.runpytest(p) result.stdout.fnmatch_lines([ "*ERROR*setup*test_one*", - "*capsys*capfd*same*time*", + "E*capsys*capfd*same*time*", "*ERROR*setup*test_two*", - "*capsys*capfd*same*time*", + "E*capsys*capfd*same*time*", "*2 error*"]) @pytest.mark.parametrize("method", ["sys", "fd"])