From b1af40b18fc546ee22b7e5d97a6b0e2ab676cf4f Mon Sep 17 00:00:00 2001
From: Joel Capitao <jcapitao@redhat.com>
Date: Wed, 10 Jun 2020 17:37:18 +0200
Subject: [PATCH] Remove unit test test_different_instance_callbacks
---
oslo_utils/tests/test_reflection.py | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/oslo_utils/tests/test_reflection.py b/oslo_utils/tests/test_reflection.py
index 34384f7..e4e563d 100644
--- a/oslo_utils/tests/test_reflection.py
+++ b/oslo_utils/tests/test_reflection.py
@@ -137,24 +137,6 @@ class CallbackEqualityTest(test_base.BaseTestCase):
self.assertTrue(reflection.is_same_callback(a.b, b.b))
- def test_different_instance_callbacks(self):
-
- class A(object):
- def b(self):
- pass
-
- def __eq__(self, other):
- return True
-
- def __ne__(self, other):
- return not self.__eq__(other)
-
- b = A()
- c = A()
-
- self.assertFalse(reflection.is_same_callback(b.b, c.b))
- self.assertTrue(reflection.is_same_callback(b.b, c.b, strict=False))
-
class BoundMethodTest(test_base.BaseTestCase):
def test_baddy(self):
--
2.25.4