From af2aeaa66b6d7ccfc6cbf5d358974c70536950a3 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 25 Jul 2018 01:49:51 -0400 Subject: [PATCH] fixing unit tests --- tests/unit/test_customLogger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_customLogger.py b/tests/unit/test_customLogger.py index 74cfbb8e6..051b20185 100644 --- a/tests/unit/test_customLogger.py +++ b/tests/unit/test_customLogger.py @@ -1,4 +1,4 @@ -import StringIO +from io import StringIO import logging import mock @@ -7,7 +7,7 @@ from twisted.internet import defer from twisted import trial from lbrynet import custom_logger -from lbrynet.tests.util import is_android +from tests.util import is_android class TestLogger(trial.unittest.TestCase): @@ -23,7 +23,7 @@ class TestLogger(trial.unittest.TestCase): def setUp(self): self.log = custom_logger.Logger('test') - self.stream = StringIO.StringIO() + self.stream = StringIO() handler = logging.StreamHandler(self.stream) handler.setFormatter(logging.Formatter("%(filename)s:%(lineno)d - %(message)s")) self.log.addHandler(handler)