1
0
Fork 0
forked from github/pelican

Merge pull request #2727 from avaris/cleanup-after-tests

Reset global state set by tests in test_pelican
This commit is contained in:
Justin Mayer 2020-04-16 10:17:54 +02:00 committed by GitHub
commit cb3bb4ad69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)