From ccf678f146542e0a4630b6f9e040d19461c4493f Mon Sep 17 00:00:00 2001 From: James Kasten Date: Fri, 24 Jul 2015 19:23:12 -0700 Subject: [PATCH] rmdirs -> shutil.rmtree --- .../letsencrypt_apache/tests/configurator_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py b/letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py index f7c3d12f3..d318805a6 100644 --- a/letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py +++ b/letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py @@ -177,7 +177,7 @@ class TwoVhost80Test(util.ApacheTest): self.assertTrue("mod_ssl.c" in self.config.parser.modules) def test_enable_mod_unsupported_dirs(self): - os.removedirs(os.path.join(self.config.parser.root, "mods-enabled")) + shutil.rmtree(os.path.join(self.config.parser.root, "mods-enabled")) self.assertRaises( errors.NotSupportedError, self.config.enable_mod, "ssl")