Skip to content

Commit 104ef76

Browse files
committed
Improve test_tk_loop to run localy.
1 parent 6a68f02 commit 104ef76

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_eventloop.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,20 @@ def do_thing():
6464
time.sleep(1)
6565
try:
6666
kernel.app_wrapper.app.quit()
67+
kernel.app_wrapper.app.destroy()
6768
# guard for tk failing to start (if there is no display)
6869
except AttributeError:
6970
pass
7071

7172
t = threading.Thread(target=do_thing)
73+
t.daemon = True
7274
t.start()
7375
# guard for tk failing to start (if there is no display)
7476
try:
7577
loop_tk(kernel)
7678
except Exception:
7779
pass
78-
t.join()
80+
t.join(1)
7981

8082

8183
@windows_skip

0 commit comments

Comments
 (0)