From 061f4c1515c97cb64bcd8d199408ca6aa9ef4864 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 21 Apr 2010 14:46:41 +0200 Subject: [PATCH] robustify check --HG-- branch : trunk --- testing/plugin/test_pytest_runner_xunit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/plugin/test_pytest_runner_xunit.py b/testing/plugin/test_pytest_runner_xunit.py index 0d525b95b..3b1699ea0 100644 --- a/testing/plugin/test_pytest_runner_xunit.py +++ b/testing/plugin/test_pytest_runner_xunit.py @@ -192,7 +192,7 @@ def test_setup_funcarg_setup_not_called_if_outer_scope_fails(testdir): def setup_module(mod): raise ValueError(42) def pytest_funcarg__hello(request): - raise ValueError(43) + raise ValueError("xyz43") def test_function1(hello): pass def test_function2(hello): @@ -206,7 +206,7 @@ def test_setup_funcarg_setup_not_called_if_outer_scope_fails(testdir): "*ValueError*42*", "*2 error*" ]) - assert "43" not in result.stdout.str() + assert "xyz43" not in result.stdout.str()