1
0
Fork 0
forked from github/pelican

Reset global state set by tests in test_pelican

Calling read_settings to clear the options put into
pelican.settings.PYGMENTS_RST_OPTIONS in tearDown so
that tests that are run after are not affected
This commit is contained in:
Deniz Turgut 2020-04-16 11:11:24 +03:00
commit d13108b03a

View file

@ -50,6 +50,7 @@ class TestPelican(LoggedTestCase):
locale.setlocale(locale.LC_ALL, str('C'))
def tearDown(self):
read_settings() # cleanup PYGMENTS_RST_OPTIONS
rmtree(self.temp_path)
rmtree(self.temp_cache)
locale.setlocale(locale.LC_ALL, self.old_locale)