diff options
| author | Aymeric Augustin | 2014-01-08 21:55:17 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2014-01-08 22:13:32 +0100 |
| commit | fe6b2ce8c3db95367741012dce6a310cdd50266e (patch) | |
| tree | 0ec77a164cf2831a237573d3d212166d8f4c2ff0 /tests/panels/test_logging.py | |
| parent | c4224327f5e855d472d6f07316f374d209238411 (diff) | |
| download | django-debug-toolbar-fe6b2ce8c3db95367741012dce6a310cdd50266e.tar.bz2 | |
Allow the tests to run on Django 1.7.
Diffstat (limited to 'tests/panels/test_logging.py')
| -rw-r--r-- | tests/panels/test_logging.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/panels/test_logging.py b/tests/panels/test_logging.py index 342e673..288efad 100644 --- a/tests/panels/test_logging.py +++ b/tests/panels/test_logging.py @@ -2,7 +2,8 @@ from __future__ import absolute_import, unicode_literals import logging -from debug_toolbar.panels.logging import MESSAGE_IF_STRING_REPRESENTATION_INVALID +from debug_toolbar.panels.logging import ( + collector, MESSAGE_IF_STRING_REPRESENTATION_INVALID) from ..base import BaseTestCase @@ -13,6 +14,7 @@ class LoggingPanelTestCase(BaseTestCase): super(LoggingPanelTestCase, self).setUp() self.panel = self.toolbar.get_panel_by_id('LoggingPanel') self.logger = logging.getLogger(__name__) + collector.clear_collection() def test_happy_case(self): self.logger.info('Nothing to see here, move along!') |
