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:
parent
e10dcfc5e7
commit
d13108b03a
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue