mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
rmdirs -> shutil.rmtree
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user