[py-svn] r38143 - py/trunk/py/misc/testing

guido at codespeak.net guido at codespeak.net
Thu Feb 8 14:51:38 CET 2007


Author: guido
Date: Thu Feb  8 14:51:38 2007
New Revision: 38143

Modified:
   py/trunk/py/misc/testing/test_update_website.py
Log:
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).


Modified: py/trunk/py/misc/testing/test_update_website.py
==============================================================================
--- py/trunk/py/misc/testing/test_update_website.py	(original)
+++ py/trunk/py/misc/testing/test_update_website.py	Thu Feb  8 14:51:38 2007
@@ -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 @@
     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
 



More information about the pytest-commit mailing list