]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: use older names for module setup/teardown
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 21 Nov 2013 02:35:34 +0000 (18:35 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 21 Nov 2013 02:37:32 +0000 (18:37 -0800)
setUp and tearDown require nosetests 0.11, but 0.10.4 is the latest on
centos. Rename to use the older aliases, which still work with newer
versions of nosetests as well.

Fixes: #6368
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
src/test/pybind/test_rbd.py

index 5f14e62bbded50f308d550baadb6d1c5694e257d..00db0dac741e8115193308d3f308d9fd192f61ac 100644 (file)
@@ -19,7 +19,7 @@ IMG_NAME = 'foo'
 IMG_SIZE = 8 << 20 # 8 MiB
 IMG_ORDER = 22 # 4 MiB objects
 
-def setUp():
+def setup_module():
     global rados
     rados = Rados(conffile='')
     rados.connect()
@@ -31,7 +31,7 @@ def setUp():
     if features is not None:
         features = int(features)
 
-def tearDown():
+def teardown_module():
     global ioctx
     ioctx.__del__()
     global rados