Commit 75183f50 authored by Denis Bilenko's avatar Denis Bilenko

greentest.py: fix hook_stderr to store the empty string as well

parent d7e92149
......@@ -117,8 +117,7 @@ class TestCase(unittest.TestCase):
except AttributeError:
return None
sys.stderr = self.old_stderr
if value:
self.stderr = value
self.stderr = value
return value
def assert_stderr_traceback(self, typ, value=None):
......
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