summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2017-05-19 12:43:49 -0400
committerChangBo Guo(gcb) <glongwave@gmail.com>2017-05-24 01:55:18 +0000
commit3ecd5c9d3fd6a401be0818950d23a300ce1594ba (patch)
tree31f12808a1f2ded446519d4df1f0507876f6321f
parentbd86f2d6b1f49a62dcb5547806d1a607348808bc (diff)
downloadoslo-log-3ecd5c9d3fd6a401be0818950d23a300ce1594ba.tar.gz
fix test description comment
Update the comment to explain what the test does, rather than what the old test that was copied to create the new test did. Change-Id: I1a23d1134a3b0269bd2a61b8768a64fe6039fe85 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r--oslo_log/tests/unit/test_log.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/oslo_log/tests/unit/test_log.py b/oslo_log/tests/unit/test_log.py
index c3d1fb8..1df8a02 100644
--- a/oslo_log/tests/unit/test_log.py
+++ b/oslo_log/tests/unit/test_log.py
@@ -697,9 +697,8 @@ class ContextFormatterTestCase(LogTestBase):
self.assertTrue(self.stream.getvalue().endswith(expected))
def test_skip_logging_builtin_exceptions(self):
- # NOTE(dhellmann): If there is an exception and %(error_summary)s
- # does not appear in the format string, ensure that it is
- # appended to the end of the log lines.
+ # NOTE(dhellmann): Several of the built-in exception types
+ # should not be automatically added to the log output.
ctxt = _fake_context()
ctxt.request_id = six.text_type('99')
message = self.trans_fixture.lazy('test ' + six.unichr(128))