Files
pyscript/pyscript.core/tests/manual/worker.py
Andrea Giammarchi 9f46234f71 Fix #2114 - Cleanup the test folder + automation (#2143)
* Fix #2114 - Cleanup the test folder + automation
* Merged both test and tests into a single folder
2024-08-08 17:08:59 +02:00

14 lines
243 B
Python

import js
js.document.body.append("document patch ")
import a
from pyscript import RUNNING_IN_WORKER, display, sync
display("Hello World", target="test", append=True)
print(RUNNING_IN_WORKER)
print("sleeping")
sync.sleep(1)
print("awake")