From 9643b7d6f8eb7ae66f76c0341aa31188556109a8 Mon Sep 17 00:00:00 2001 From: guido Date: Thu, 8 Feb 2007 14:51:38 +0100 Subject: [PATCH] [svn r38143] Removed some confusing output to stdout/stderr (output of failing tests, which are part of a test that tests whether a set of tests ran by a nested py.test process fails... so the failing output is correct). --HG-- branch : trunk --- py/misc/testing/test_update_website.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py/misc/testing/test_update_website.py b/py/misc/testing/test_update_website.py index 0c413db50..b5ec044ab 100644 --- a/py/misc/testing/test_update_website.py +++ b/py/misc/testing/test_update_website.py @@ -1,4 +1,5 @@ import py +import sys here = py.magic.autopath().dirpath() update_website = here.join('../../bin/_update_website.py').pyimport() @@ -53,9 +54,11 @@ def test_run_tests(): assert pkgpath.join('../apigen/api/sub.foo.html').check(file=True) def test_run_tests_failure(): + if py.std.sys.platform == "win32": + py.test.skip("update_website is not supposed to be run from win32") pkgpath = setup_pkg('update_website_run_tests_failure') assert not pkgpath.join('../apigen').check(dir=True) pkgpath.ensure('../apigen', file=True) - errors = update_website.run_tests(pkgpath) + errors = update_website.run_tests(pkgpath, '> /dev/null 2>&1') assert errors # some error message