[Scipy-svn] r5383 - trunk/scipy/weave/tests

scipy-svn@scip... scipy-svn@scip...
Thu Jan 8 02:11:43 CST 2009


Author: stefan
Date: 2009-01-08 02:11:29 -0600 (Thu, 08 Jan 2009)
New Revision: 5383

Modified:
   trunk/scipy/weave/tests/test_ext_tools.py
Log:
Suppress stream output during testing.

Modified: trunk/scipy/weave/tests/test_ext_tools.py
===================================================================
--- trunk/scipy/weave/tests/test_ext_tools.py	2009-01-08 08:10:55 UTC (rev 5382)
+++ trunk/scipy/weave/tests/test_ext_tools.py	2009-01-08 08:11:29 UTC (rev 5383)
@@ -46,8 +46,10 @@
         # function 2 --> a little more complex expression
         var_specs = ext_tools.assign_variable_types(['a'],locals(),globals())
         code = """
+               std::cout.clear(std::ios_base::badbit);
                std::cout << std::endl;
                std::cout << "test printing a value:" << a << std::endl;
+               std::cout.clear(std::ios_base::goodbit);
                """
         test = ext_tools.ext_function_from_specs('test',code,var_specs)
         mod.add_function(test)



More information about the Scipy-svn mailing list