From a0496813fad5eb7c91f4b1ba9b3a115a83adb5f6 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Mon, 29 Nov 2021 17:41:39 +0200 Subject: [PATCH] Fix imports in bitmessageqt.tests --- src/bitmessageqt/tests/main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bitmessageqt/tests/main.py b/src/bitmessageqt/tests/main.py index 9ffba909..9631878d 100644 --- a/src/bitmessageqt/tests/main.py +++ b/src/bitmessageqt/tests/main.py @@ -4,7 +4,8 @@ import Queue import sys import unittest -from qtpy import QtCore, QtWidgets +from PyQt5 import QtCore, QtWidgets +from six import string_types import bitmessageqt import queues @@ -39,10 +40,7 @@ class TestMain(unittest.TestCase): def test_translate(self): """Check the results of _translate() with various args""" - self.assertIsInstance( - _translate("MainWindow", "Test"), - unicode - ) + self.assertIsInstance(_translate("MainWindow", "Test"), string_types) class TestUISignaler(TestBase):