Skip to content

Commit 37c4527

Browse files
DinoVmeta-codesync[bot]
authored andcommitted
Skip tests which depend on lazy imports on 3.15
Summary: We don't have lazy imports on 3.15 - skip the test for now. Reviewed By: jbower-fb Differential Revision: D85979472 fbshipit-source-id: 797d3fbee08f9151701cc6126c06189ab20f47b3
1 parent ec0b63a commit 37c4527

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

cinderx/PythonLib/test_cinderx/test_jit_preload.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@
1616

1717
from cinderx.test_support import CINDERX_PATH, ENCODING, skip_unless_jit
1818

19+
SKIP_315: bool = sys.version_info >= (3, 15)
20+
1921

2022
class PreloadTests(unittest.TestCase):
2123
SCRIPT_FILE: str = os.path.join(
2224
os.path.dirname(__file__), "cinder_preload_helper_main.py"
2325
)
2426

2527
@skip_unless_jit("Runs a subprocess with the JIT enabled")
28+
@unittest.skipIf(SKIP_315, "no lazy imports on 3.15 T243514540")
2629
def test_func_destroyed_during_preload(self) -> None:
2730
proc = subprocess.run(
2831
[
@@ -63,6 +66,10 @@ def test_preload_error(self) -> None:
6366
[True, False] if cinderx.jit.is_enabled() else [False],
6467
[True, False],
6568
):
69+
if sys.version_info >= (3, 15) and lazyimports:
70+
# T243514540: lazy imports isn't available on 3.15
71+
continue
72+
6673
root = os.path.join(
6774
os.path.dirname(__file__),
6875
"data/preload_error_recursive" if recursive else "data/preload_error",
@@ -106,6 +113,10 @@ def test_error_preloading_inlined(self) -> None:
106113
[True, False],
107114
[True, False] if cinderx.jit.is_enabled() else [False],
108115
):
116+
if sys.version_info >= (3, 15) and lazy_imports:
117+
# T243514540: lazy imports isn't available on 3.15
118+
continue
119+
109120
with self.subTest(lazy_imports=lazy_imports, jit=jit):
110121
cmd = [sys.executable]
111122
if jit:

0 commit comments

Comments
 (0)