]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: s/__del__/__dealloc__/ 9201/head
authorHector Martin <marcan@marcan.st>
Fri, 26 Feb 2016 10:18:53 +0000 (19:18 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 24 May 2016 11:30:46 +0000 (20:30 +0900)
Signed-off-by: Hector Martin <marcan@marcan.st>
src/pybind/rados/rados.pyx
src/test/pybind/test_rbd.py

index 4eeeeed0a01102b6b4af3e76a392a4a702223b2a..955d2bdf404a30af8833a936befbe7a621c7c50a 100644 (file)
@@ -1750,7 +1750,7 @@ cdef class Ioctx(object):
         self.close()
         return False
 
-    def __del__(self):
+    def __dealloc__(self):
         self.close()
 
     def __track_completion(self, completion_obj):
index 259221dc4ef1b68a64bc36180ed02edf874c87e3..2341e36de99f2fdb344406247810c07f6f802481 100644 (file)
@@ -44,7 +44,7 @@ def setup_module():
 
 def teardown_module():
     global ioctx
-    ioctx.__del__()
+    ioctx.close()
     global rados
     rados.delete_pool(pool_name)
     rados.shutdown()
@@ -1026,7 +1026,7 @@ class TestExclusiveLock(object):
     def tearDown(self):
         remove_image()
         global ioctx2
-        ioctx2.__del__()
+        ioctx2.close()
         global rados2
         rados2.shutdown()