Skip to content

Commit

Permalink
Add TC to demonstrate pytest-dev#3297 that caplog.clear() does not cl…
Browse files Browse the repository at this point in the history
…ean text
  • Loading branch information
ankostis committed Mar 12, 2018
1 parent 3909225 commit 6837551
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/logging/test_fixture.py
Expand Up @@ -95,8 +95,10 @@ def test_clear(caplog):
caplog.set_level(logging.INFO)
logger.info(u'bū')
assert len(caplog.records)
assert caplog.text
caplog.clear()
assert not len(caplog.records)
assert not caplog.text


@pytest.fixture
Expand Down

0 comments on commit 6837551

Please sign in to comment.