summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildscripts/resmokelib/testing/fixtures/standalone.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/standalone.py b/buildscripts/resmokelib/testing/fixtures/standalone.py
index 19925edb6be..d563a313703 100644
--- a/buildscripts/resmokelib/testing/fixtures/standalone.py
+++ b/buildscripts/resmokelib/testing/fixtures/standalone.py
@@ -56,11 +56,7 @@ class MongoDFixture(interface.Fixture):
if not self.preserve_dbpath and os.path.lexists(self._dbpath):
shutil.rmtree(self._dbpath, ignore_errors=False)
- try:
- os.makedirs(self._dbpath)
- except os.error:
- # Directory already exists.
- pass
+ os.makedirs(self._dbpath, exist_ok=True)
launcher = MongodLauncher(self.fixturelib)
# Second return val is the port, which we ignore because we explicitly created the port above.