[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/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:04 EST 2005


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

Changed:
  U   Zope/branches/Zope-2_8-branch/lib/python/Products/PythonScripts/tests/testPythonScript.py

-=-
Modified: Zope/branches/Zope-2_8-branch/lib/python/Products/PythonScripts/tests/testPythonScript.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/Products/PythonScripts/tests/testPythonScript.py	2005-11-22 22:50:33 UTC (rev 40335)
+++ Zope/branches/Zope-2_8-branch/lib/python/Products/PythonScripts/tests/testPythonScript.py	2005-11-23 02:18:03 UTC (rev 40336)
@@ -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