diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-12-25 01:03:06 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-02 12:59:51 +0900 |
| commit | e755a8c004291faa27e511205d2c365e8461bf9f (patch) | |
| tree | 3d68dd63736e1273f115b315cce981f565a3586a /tests/test_util_logging.py | |
| parent | 6bf201533a372fee2503ea4b79858752ce41b612 (diff) | |
| download | sphinx-git-e755a8c004291faa27e511205d2c365e8461bf9f.tar.gz | |
Use loggers
Diffstat (limited to 'tests/test_util_logging.py')
| -rw-r--r-- | tests/test_util_logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_util_logging.py b/tests/test_util_logging.py index 37c4a2d2a..59c899369 100644 --- a/tests/test_util_logging.py +++ b/tests/test_util_logging.py @@ -296,9 +296,10 @@ def test_output_with_unencodable_char(app, status, warning): self.stream.write(object.encode('cp1252').decode('cp1252')) logging.setup(app, StreamWriter(status), warning) + logger = logging.getLogger(__name__) # info with UnicodeEncodeError status.truncate(0) status.seek(0) - app.info(u"unicode \u206d...") + logger.info(u"unicode \u206d...") assert status.getvalue() == "unicode ?...\n" |
