Skip to content

Commit 3e7642e

Browse files
committed
Skip test on macos
1 parent f57f141 commit 3e7642e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_scheduler/test_mainloop/test_tkinterscheduler.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import os
2+
import platform
3+
import sys
24
import unittest
35
from datetime import timedelta
46
from time import sleep
@@ -8,6 +10,12 @@
810
from reactivex.internal.basic import default_now
911
from reactivex.scheduler.mainloop import TkinterScheduler
1012

13+
# Skip entire module on PyPy + macOS due to threading issues with Tkinter
14+
# Error: "Tcl_AsyncDelete: async handler deleted by the wrong thread"
15+
# This occurs when pytest-xdist tries to parallelize tests that use Tkinter
16+
if platform.system() == "Darwin" and hasattr(sys, "pypy_version_info"):
17+
pytest.skip("Tkinter tests are incompatible with PyPy on macOS", allow_module_level=True)
18+
1119
tkinter = pytest.importorskip("tkinter")
1220

1321
try:

0 commit comments

Comments
 (0)