Commit 9b23c3d8 authored by Tres Seaver's avatar Tres Seaver

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

parent f0fb8191
......@@ -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