Looks like nose likes to leave references to the test instances around.
This doesn't break anything, but does cause Ioctx/Image objects to stick
around which makes debugging more complicated, as everything gets dealloced
together at the end.
Signed-off-by: Hector Martin <marcan@marcan.st>
def tearDown(self):
self.ioctx.close()
+ self.ioctx = None
self.rados.delete_pool('test_pool')
self.rados.shutdown()
+ self.rados = None
def test_read(self):
eq(self.object.read(3), b'bar')
def tearDown(self):
self.image.close()
remove_image()
+ self.image = None
@require_new_format()
@blacklist_features([RBD_FEATURE_EXCLUSIVE_LOCK])