summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/testcases.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/testcases.py')
-rw-r--r--buildscripts/resmokelib/testing/testcases.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildscripts/resmokelib/testing/testcases.py b/buildscripts/resmokelib/testing/testcases.py
index 0f6dfb8b447..b2d32c1eb80 100644
--- a/buildscripts/resmokelib/testing/testcases.py
+++ b/buildscripts/resmokelib/testing/testcases.py
@@ -6,7 +6,6 @@ from __future__ import absolute_import
import os
import os.path
-import shutil
import unittest
from .. import config
@@ -222,7 +221,7 @@ class DBTestCase(TestCase):
dbpath = os.path.join(dbpath_prefix, "job%d" % (self.fixture.job_num), "unittest")
self.dbtest_options["dbpath"] = dbpath
- shutil.rmtree(dbpath, ignore_errors=True)
+ utils.rmtree(dbpath, ignore_errors=True)
try:
os.makedirs(dbpath)
@@ -318,7 +317,7 @@ class JSTestCase(TestCase):
global_vars["TestData"] = test_data
self.shell_options["global_vars"] = global_vars
- shutil.rmtree(data_dir, ignore_errors=True)
+ utils.rmtree(data_dir, ignore_errors=True)
try:
os.makedirs(data_dir)