[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py Ensure we don't forget to restore sys.stderr.

Tres Seaver tseaver at palladion.com
Tue Nov 22 21:18:56 EST 2005


Log message for revision 40338:
  Ensure we don't forget to restore sys.stderr.

Changed:
  U   Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py

-=-
Modified: Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py
===================================================================
--- Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py	2005-11-23 02:18:27 UTC (rev 40337)
+++ Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py	2005-11-23 02:18:55 UTC (rev 40338)
@@ -244,6 +244,14 @@
                 self.assertRaises(TypeError, f)
 
 class TestPythonScriptGlobals(PythonScriptTestBase, WarningInterceptor):
+
+    def setUp(self):
+        PythonScriptTestBase.setUp(self)
+
+    def tearDown(self):
+        self._free_warning_output()
+        PythonScriptTestBase.tearDown(self)
+
     def _exec(self, script, bound_names=None, args=None, kws=None):
         if args is None:
             args = ()



More information about the Zope-Checkins mailing list