aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/samplebinding/point_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/point_test.py')
-rw-r--r--sources/shiboken2/tests/samplebinding/point_test.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/sources/shiboken2/tests/samplebinding/point_test.py b/sources/shiboken2/tests/samplebinding/point_test.py
index 36e6bc642..c2159e7d5 100644
--- a/sources/shiboken2/tests/samplebinding/point_test.py
+++ b/sources/shiboken2/tests/samplebinding/point_test.py
@@ -40,7 +40,6 @@ from shiboken_paths import init_paths
init_paths()
from sample import Point
-from py3kcompat import unicode
class PointTest(unittest.TestCase):
'''Test case for Point class, including operator overloads.'''
@@ -100,12 +99,12 @@ class PointTest(unittest.TestCase):
def testAddedOperator(self):
p = Point(0.0, 0.0)
- r = p - unicode('Hi')
- self.assertEqual(r, unicode('Hi'))
+ r = p - 'Hi'
+ self.assertEqual(r, 'Hi')
# now the reverse op.
- r = unicode('Hi') - p
- self.assertEqual(r, unicode('Hi'))
+ r = 'Hi' - p
+ self.assertEqual(r, 'Hi')
def testModifiedMethod(self):
pt1 = Point(0.0, 0.0)