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