summaryrefslogtreecommitdiff
path: root/tests/ecore/test_04_idler.py
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-08-03 14:47:42 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2016-08-03 14:47:42 +0300
commit0916eae9ff7833ee7b88dda95873836fd9b7575c (patch)
treeb03908192277e81d065b880d80c39182a3da08c8 /tests/ecore/test_04_idler.py
parentd6bad7a8389e33b8e3cf1a98e8155cffbaca5989 (diff)
Add logging to the rest of the individual unit tests
Diffstat (limited to 'tests/ecore/test_04_idler.py')
-rw-r--r--tests/ecore/test_04_idler.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ecore/test_04_idler.py b/tests/ecore/test_04_idler.py
index 711cd52..dc9b100 100644
--- a/tests/ecore/test_04_idler.py
+++ b/tests/ecore/test_04_idler.py
@@ -2,6 +2,7 @@
2 2
3from efl import ecore 3from efl import ecore
4import unittest 4import unittest
5import logging
5 6
6 7
7def cb_true(n, t, a): 8def cb_true(n, t, a):
@@ -45,4 +46,10 @@ class TestIdler(unittest.TestCase):
45 46
46 47
47if __name__ == '__main__': 48if __name__ == '__main__':
49 formatter = logging.Formatter("[%(levelname)s] %(name)s (%(filename)s: %(lineno)d) --- %(message)s")
50 handler = logging.StreamHandler()
51 handler.setFormatter(formatter)
52 efllog = logging.getLogger("efl")
53 efllog.addHandler(handler)
54 efllog.setLevel(logging.DEBUG)
48 unittest.main(verbosity=2) 55 unittest.main(verbosity=2)