aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-27 15:58:38 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-07-27 17:42:39 -0300
commit419499bbaf4c6e4f55a0083d8ec65749440a38de (patch)
tree60493de8574fabe61f96b890f0495e9ca2522f84 /tests
parent21460348ae4a73877ecbcc610d5ccd66a390d0c1 (diff)
Create a new copy from object when convert from PyObject to const ref.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/point_test.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/samplebinding/point_test.py b/tests/samplebinding/point_test.py
index c5b1bf2e..a461703f 100644
--- a/tests/samplebinding/point_test.py
+++ b/tests/samplebinding/point_test.py
@@ -78,15 +78,6 @@ class PointTest(unittest.TestCase):
self.assertEqual(sys.getrefcount(pt1), refcount1 + 1)
self.assertEqual(sys.getrefcount(pt1), sys.getrefcount(pt2))
- def testReturnConstReference(self):
- '''Point returns a const reference for itself.'''
- pt1 = Point(5.0, 2.3)
- refcount1 = sys.getrefcount(pt1)
- pt2 = pt1.getConstReferenceToSelf()
- self.assertEqual(pt1, pt2)
- self.assertEqual(sys.getrefcount(pt1), refcount1 + 1)
- self.assertEqual(sys.getrefcount(pt1), sys.getrefcount(pt2))
-
if __name__ == '__main__':
unittest.main()