Fix tests closing properly (#5203)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-01-07 01:47:25 +01:00
1 parent 2b991e2f32
commit aa1e4c564c
14 files changed
+108 -83

No files matched your search

@@ -43,6 +43,7 @@ class TestDdwrt(unittest.TestCase):
def teardown_method(self, _):
"""Stop everything that was started."""
self.hass.stop()
try:
os.remove(self.hass.config.path(device_tracker.YAML_DEVICES))
except FileNotFoundError: