From b901a26c47151e56978bd16aec94252e3f21a804 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 18 Aug 2018 13:35:51 +0200 Subject: [PATCH] Attempt to fix flaky TTS test (#16025) --- tests/components/tts/test_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/tts/test_init.py b/tests/components/tts/test_init.py index e8746ee762f..0970f0d7490 100644 --- a/tests/components/tts/test_init.py +++ b/tests/components/tts/test_init.py @@ -44,11 +44,11 @@ class TestTTS: def teardown_method(self): """Stop everything that was started.""" + self.hass.stop() + if os.path.isdir(self.default_tts_cache): shutil.rmtree(self.default_tts_cache) - self.hass.stop() - def test_setup_component_demo(self): """Setup the demo platform with defaults.""" config = {