Remove older workarounds, comment newer ones

This commit is contained in:
Peter Eckersley 2016-02-04 18:58:57 -08:00
parent 2e05d33d3b
commit 9cd0d5497f
2 changed files with 3 additions and 6 deletions

View file

@ -865,6 +865,8 @@ def _renewal_conf_files(config):
return glob.glob(os.path.join(config.renewal_configs_dir, "*.conf"))
def _copy_nsconfig(config):
# Work around https://bugs.python.org/issue1515 for py26 tests :( :(
# https://travis-ci.org/letsencrypt/letsencrypt/jobs/106900743#L3276
ns = copy.deepcopy(config.namespace)
new_config = configuration.NamespaceConfig(ns)
return new_config

View file

@ -603,11 +603,7 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
print lf.read()
# Work around https://bugs.python.org/issue1515 for py26 tests :( :(
# https://travis-ci.org/letsencrypt/letsencrypt/jobs/106900743#L3276
@mock.patch('letsencrypt.cli.copy.deepcopy')
def test_renewal_verb(self, hack_copy):
def test_renewal_verb(self):
with open(test_util.vector_path('sample-renewal.conf')) as src:
# put the correct path for cert.pem, chain.pem etc in the renewal conf
renewal_conf = src.read().replace("MAGICDIR", test_util.vector_path())
@ -616,7 +612,6 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
rc = os.path.join(rd, "sample-renewal.conf")
with open(rc, "w") as dest:
dest.write(renewal_conf)
hack_copy.side_effect = lambda x: x
args = ["renew", "--dry-run", "-tvv"]
self._test_renewal_common(True, [], args=args, renew=True)