[py-svn] py-trunk commit 616ff9c76f53: robustify check

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 21 14:50:00 CEST 2010


# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview
# User holger krekel <holger at merlinux.eu>
# Date 1271854001 -7200
# Node ID 616ff9c76f537dd5134f98f26be7f262f50fd26c
# Parent  0e098b4734bc30dc29d6e9a2a03b653399ddb041
robustify check

--- 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_
         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_
         "*ValueError*42*",
         "*2 error*"
     ])
-    assert "43" not in result.stdout.str()
+    assert "xyz43" not in result.stdout.str()



More information about the pytest-commit mailing list