forked from LBRYCommunity/lbry-sdk
update logging tests
This commit is contained in:
parent
37eaf634c4
commit
944b94aae8
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ import unittest
|
|||
from twisted.internet import defer
|
||||
from twisted import trial
|
||||
|
||||
from lbrynet.core import log_support
|
||||
from lbrynet import customLogger
|
||||
from lbrynet.tests.util import is_android
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@ class TestLogger(trial.unittest.TestCase):
|
|||
return d
|
||||
|
||||
def setUp(self):
|
||||
self.log = log_support.Logger('test')
|
||||
self.log = customLogger.Logger('test')
|
||||
self.stream = StringIO.StringIO()
|
||||
handler = logging.StreamHandler(self.stream)
|
||||
handler.setFormatter(logging.Formatter("%(filename)s:%(lineno)d - %(message)s"))
|
||||
|
@ -36,7 +36,7 @@ class TestLogger(trial.unittest.TestCase):
|
|||
return self.stream.getvalue().split('\n')
|
||||
|
||||
# the line number could change if this file gets refactored
|
||||
expected_first_line = 'test_log_support.py:20 - My message: terrible things happened'
|
||||
expected_first_line = 'test_customLogger.py:20 - My message: terrible things happened'
|
||||
|
||||
# testing the entirety of the message is futile as the
|
||||
# traceback will depend on the system the test is being run on
|
Loading…
Reference in a new issue