Allow testing against uvloop (#6468)
This commit is contained in:
1 parent
470702261a
commit
44d4987536
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -56,7 +56,6 @@ def get_test_home_assistant():
|
||||
# pylint: disable=protected-access
|
||||
loop._thread_ident = threading.get_ident()
|
||||
loop.run_forever()
|
||||
loop.close()
|
||||
stop_event.set()
|
||||
|
||||
orig_start = hass.start
|
||||
@@ -73,6 +72,7 @@ def get_test_home_assistant():
|
||||
"""Stop hass."""
|
||||
orig_stop()
|
||||
stop_event.wait()
|
||||
loop.close()
|
||||
|
||||
hass.start = start_hass
|
||||
hass.stop = stop_hass
|
||||
|
||||
Reference in new issue
Block a user