|
16 | 16 |
|
17 | 17 | from cinderx.test_support import CINDERX_PATH, ENCODING, skip_unless_jit |
18 | 18 |
|
| 19 | +SKIP_315: bool = sys.version_info >= (3, 15) |
| 20 | + |
19 | 21 |
|
20 | 22 | class PreloadTests(unittest.TestCase): |
21 | 23 | SCRIPT_FILE: str = os.path.join( |
22 | 24 | os.path.dirname(__file__), "cinder_preload_helper_main.py" |
23 | 25 | ) |
24 | 26 |
|
25 | 27 | @skip_unless_jit("Runs a subprocess with the JIT enabled") |
| 28 | + @unittest.skipIf(SKIP_315, "no lazy imports on 3.15 T243514540") |
26 | 29 | def test_func_destroyed_during_preload(self) -> None: |
27 | 30 | proc = subprocess.run( |
28 | 31 | [ |
@@ -63,6 +66,10 @@ def test_preload_error(self) -> None: |
63 | 66 | [True, False] if cinderx.jit.is_enabled() else [False], |
64 | 67 | [True, False], |
65 | 68 | ): |
| 69 | + if sys.version_info >= (3, 15) and lazyimports: |
| 70 | + # T243514540: lazy imports isn't available on 3.15 |
| 71 | + continue |
| 72 | + |
66 | 73 | root = os.path.join( |
67 | 74 | os.path.dirname(__file__), |
68 | 75 | "data/preload_error_recursive" if recursive else "data/preload_error", |
@@ -106,6 +113,10 @@ def test_error_preloading_inlined(self) -> None: |
106 | 113 | [True, False], |
107 | 114 | [True, False] if cinderx.jit.is_enabled() else [False], |
108 | 115 | ): |
| 116 | + if sys.version_info >= (3, 15) and lazy_imports: |
| 117 | + # T243514540: lazy imports isn't available on 3.15 |
| 118 | + continue |
| 119 | + |
109 | 120 | with self.subTest(lazy_imports=lazy_imports, jit=jit): |
110 | 121 | cmd = [sys.executable] |
111 | 122 | if jit: |
|
0 commit comments