cfc23b0091d55b53eef9654fe0e9134ac12b8c38,tests/test_core.py,TestHomeAssistant,test_block_till_stoped,#TestHomeAssistant#,58
Before Change
// Threads are unpredictable, try 20 times if we"re ready
wait_loops = 0
while blocking_thread.is_alive() and wait_loops < 20:
wait_loops += 1
time.sleep(0.05)
self.assertFalse(blocking_thread.is_alive())
def test_stopping_with_keyboardinterrupt(self):
calls = []
After Change
self.hass.pool.block_till_done()
// Wait for thread to stop
for _ in range(20):
if not blocking_thread.is_alive():
break
time.sleep(0.05)
self.assertFalse(blocking_thread.is_alive())
def test_stopping_with_keyboardinterrupt(self):
calls = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: home-assistant/home-assistant
Commit Name: cfc23b0091d55b53eef9654fe0e9134ac12b8c38
Time: 2015-09-12
Author: paulus@paulusschoutsen.nl
File Name: tests/test_core.py
Class Name: TestHomeAssistant
Method Name: test_block_till_stoped
Project Name: HazyResearch/fonduer
Commit Name: 506a594e8e5fd755bc02ea2c5fe6437b8b682057
Time: 2018-08-14
Author: lwhsiao@stanford.edu
File Name: fonduer/utils/udf.py
Class Name: UDFRunner
Method Name: apply_mt
Project Name: okfn-brasil/serenata-de-amor
Commit Name: e4d5b98f9d2ef79279300d1074cbaacde8e816dc
Time: 2016-11-20
Author: cuducos@gmail.com
File Name: src/fetch_sex_places.py
Class Name:
Method Name: sex_places_neraby