We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f57f141 commit 3e7642eCopy full SHA for 3e7642e
1 file changed
tests/test_scheduler/test_mainloop/test_tkinterscheduler.py
@@ -1,4 +1,6 @@
1
import os
2
+import platform
3
+import sys
4
import unittest
5
from datetime import timedelta
6
from time import sleep
@@ -8,6 +10,12 @@
8
10
from reactivex.internal.basic import default_now
9
11
from reactivex.scheduler.mainloop import TkinterScheduler
12
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
+
19
tkinter = pytest.importorskip("tkinter")
20
21
try:
0 commit comments