Commit ae2e63a1 authored by Tres Seaver's avatar Tres Seaver

Ensure we don't forget to restore sys.stderr.

parent 47a11f25
......@@ -244,6 +244,14 @@ class TestPythonScriptErrors(PythonScriptTestBase):
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 = ()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment