From d13108b03a0d403f641fbb6f803499e2c7ffa147 Mon Sep 17 00:00:00 2001 From: Deniz Turgut Date: Thu, 16 Apr 2020 11:11:24 +0300 Subject: [PATCH] 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 --- pelican/tests/test_pelican.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pelican/tests/test_pelican.py b/pelican/tests/test_pelican.py index da23cb0a..88122846 100644 --- a/pelican/tests/test_pelican.py +++ b/pelican/tests/test_pelican.py @@ -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)