We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8511483 + c7c6d06 commit 6878989Copy full SHA for 6878989
1 file changed
kazoo/testing/common.py
@@ -223,7 +223,7 @@ def client_port(self):
223
def reset(self):
224
"""Stop the zookeeper instance, cleaning out its on disk-data."""
225
self.stop()
226
- shutil.rmtree(os.path.join(self.working_path, "data"))
+ shutil.rmtree(os.path.join(self.working_path, "data"), True)
227
os.mkdir(os.path.join(self.working_path, "data"))
228
with open(os.path.join(self.working_path, "data", "myid"), "w") as fh:
229
fh.write(str(self.server_info.server_id))
@@ -247,7 +247,7 @@ def destroy(self):
247
import shutil
248
249
250
- shutil.rmtree(self.working_path)
+ shutil.rmtree(self.working_path, True)
251
252
253
class ZookeeperCluster(object):
0 commit comments