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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/samplebinding/point_test.py b/sources/shiboken2/tests/samplebinding/point_test.py
index 6d254128f..c2159e7d5 100644
--- a/sources/shiboken2/tests/samplebinding/point_test.py
+++ b/sources/shiboken2/tests/samplebinding/point_test.py
@@ -70,7 +70,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.'''