1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-01-28 23:52:55 +08:00
pyotherside/tests/test_errors/test_errors.py
Thomas Perl 53273dad50 Check JS callback errors. Fixes #9
Thanks to Osmo Salomaa for the original report and test case.
2014-01-20 19:09:57 +01:00

12 lines
192 B
Python

import pyotherside
import threading
import time
def run():
while True:
pyotherside.send("test-errors")
time.sleep(3)
thread = threading.Thread(target=run)
thread.start()