diff options
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/point_test.py')
-rw-r--r-- | sources/shiboken2/tests/samplebinding/point_test.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/samplebinding/point_test.py b/sources/shiboken2/tests/samplebinding/point_test.py index d6498d4b3..36e6bc642 100644 --- a/sources/shiboken2/tests/samplebinding/point_test.py +++ b/sources/shiboken2/tests/samplebinding/point_test.py @@ -31,9 +31,14 @@ '''Test cases for Point class''' +import os import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from sample import Point from py3kcompat import unicode @@ -66,7 +71,10 @@ class PointTest(unittest.TestCase): '''Test Point class != operator.''' pt1 = Point(5.0, 2.3) pt2 = Point(5.0, 2.3) - self.assertRaises(NotImplementedError, pt1.__ne__, pt2) + # This test no longer makes sense because we always supply default `==`, `!=`. + #self.assertRaises(NotImplementedError, pt1.__ne__, pt2) + # Since we use the default identity comparison, this results in `!=` . + self.assertTrue(pt1 != pt2) def testReturnNewCopy(self): '''Point returns a copy of itself.''' |