diff options
Diffstat (limited to 'test/unit/common/test_diskdir.py')
-rw-r--r-- | test/unit/common/test_diskdir.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/unit/common/test_diskdir.py b/test/unit/common/test_diskdir.py index 733cc17..ba04e7f 100644 --- a/test/unit/common/test_diskdir.py +++ b/test/unit/common/test_diskdir.py @@ -43,15 +43,17 @@ def setup(): if e.errno != errno.EEXIST: raise + +import gluster.swift.common.DiskDir as dd + + def teardown(): + dd._db_file = "" shutil.rmtree(gluster.swift.common.Glusterfs.RUN_DIR) gluster.swift.common.Glusterfs.RUN_DIR = _saved_RUN_DIR gluster.swift.common.Glusterfs._do_getsize = _saved_do_getsize -import gluster.swift.common.DiskDir as dd - - def timestamp_in_range(ts, base): low = normalize_timestamp(base - 5) high = normalize_timestamp(base + 5) |