mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Inserted more simplefilter calls to be sure warnings are emitted.
Thanks to Florian Apolloner for suggesting the patch.
This commit is contained in:
parent
00c0d3c44e
commit
11a5355517
4 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ class PatchLoggingConfigTest(TestCase):
|
|||
config = copy.deepcopy(OLD_LOGGING)
|
||||
|
||||
with warnings.catch_warnings(record=True) as w:
|
||||
warnings.simplefilter("always")
|
||||
compat_patch_logging_config(config)
|
||||
self.assertEqual(len(w), 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue