File: set-default-log-level.patch

package info (click to toggle)
python-logutils 0.3.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 404 kB
  • sloc: python: 1,942; makefile: 79
file content (16 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Set default log level for tests
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1027512
Forwarded: no
Last-Update: 2023-01-04

--- python-logutils-0.3.5.orig/tests/test_adapter.py
+++ python-logutils-0.3.5/tests/test_adapter.py
@@ -10,6 +10,7 @@ class AdapterTest(unittest.TestCase):
     def setUp(self):
         self.handler = h = TestHandler(Matcher())
         self.logger = l = logging.getLogger()
+        self.logger.setLevel(logging.WARNING)
         l.addHandler(h)
         self.adapter = LoggerAdapter(l, {})