add a teardown to prevent pollution of ENV

This commit is contained in:
Alfredo Deza
2013-02-27 22:56:47 -05:00
parent 8431120b44
commit 65209e19c5

View File

@@ -289,6 +289,9 @@ class TestConfFromEnv(TestCase):
self.conf_from_env = self.get_conf_from_env()
os.environ['PECAN_CONFIG'] = ''
def tearDown(self):
os.environ['PECAN_CONFIG'] = ''
def get_conf_from_env(self):
from pecan import configuration
return configuration.conf_from_env