Skip to content

Commit 5729334

Browse files
committed
Fix imports in bitmessageqt.tests
1 parent 532c847 commit 5729334

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/bitmessageqt/tests/main.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import sys
55
import unittest
66

7-
from qtpy import QtCore, QtWidgets
7+
from PyQt5 import QtCore, QtWidgets
8+
from six import string_types
89

910
import bitmessageqt
1011
import queues
@@ -39,10 +40,7 @@ class TestMain(unittest.TestCase):
3940

4041
def test_translate(self):
4142
"""Check the results of _translate() with various args"""
42-
self.assertIsInstance(
43-
_translate("MainWindow", "Test"),
44-
unicode
45-
)
43+
self.assertIsInstance(_translate("MainWindow", "Test"), string_types)
4644

4745

4846
class TestUISignaler(TestBase):

0 commit comments

Comments
 (0)