Ignore errors on rmtree cleanup

This commit is contained in:
Jesse Zoldak
2014-08-12 12:30:37 -04:00
committed by Adam Palay
parent 323a23f53a
commit eee0d35bfe

View File

@@ -106,7 +106,7 @@ class MongoModulestoreBuilder(object):
db.connection.close()
# Delete the created directory on the filesystem
rmtree(fs_root)
rmtree(fs_root, ignore_errors=True)
def __repr__(self):
return 'MongoModulestoreBuilder()'
@@ -152,7 +152,7 @@ class VersioningModulestoreBuilder(object):
db.connection.close()
# Delete the created directory on the filesystem
rmtree(fs_root)
rmtree(fs_root, ignore_errors=True)
def __repr__(self):
return 'SplitModulestoreBuilder()'
@@ -248,7 +248,7 @@ class CrossStoreXMLRoundtrip(CourseComparisonTest):
def setUp(self):
super(CrossStoreXMLRoundtrip, self).setUp()
self.export_dir = mkdtemp()
self.addCleanup(rmtree, self.export_dir)
self.addCleanup(rmtree, self.export_dir, ignore_errors=True)
@ddt.data(*itertools.product(
MODULESTORE_SETUPS,