MCPcopy Create free account
hub / github.com/apache/arrow / wait_for_done

Method wait_for_done

python/scripts/run_emscripten_tests.py:241–255  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

239 self.driver.execute_script("window.python_logs = [];")
240
241 def wait_for_done(self):
242 while True:
243 # poll for console.log messages from our webworker
244 # which are the output of pytest
245 lines = self.driver.execute_script(
246 "let temp = window.python_logs;window.python_logs=[];return temp;"
247 )
248 if len(lines) > 0:
249 sys.stdout.buffer.write(bytes(lines))
250 done = self.driver.execute_script("return window.python_script_done;")
251 if done is not None:
252 value = done["result"]
253 self.driver.execute_script("delete window.python_script_done;")
254 return value
255 time.sleep(0.1)
256
257
258class ChromeDriver(BrowserDriver):

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
bytesFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected