File: fix_test_logger.diff

package info (click to toggle)
fades 9.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 9,456 kB
  • sloc: python: 3,940; makefile: 174; sh: 15
file content (11 lines) | stat: -rw-r--r-- 378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/tests/test_logger.py
+++ b/tests/test_logger.py
@@ -34,7 +34,7 @@
     logged.assert_info("test foobar")
 
     # again, check this time it didn't salute, but original log message is ok
-    logged.records = []
+    logged._log_checker.records = []  # pylint: disable=protected-access
     logger.info("test barbarroja")
 
     logged.assert_not_info("Hi! This is fades")