Skip to content

Commit c9e61b0

Browse files
author
Saanika Gupta
committed
Update skipif condition in test_persistent_locals - bytecode implementation is till 3.12, after that it uses profiler at runtime, hence need not test bytecode for 3.13 onwards
1 parent 56efed4 commit c9e61b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/ml/azure-ai-ml/tests/internal_utils/unittests/test_persistent_locals.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ def test_multiple_return(self):
136136
@pytest.mark.unittest
137137
@pytest.mark.pipeline_test
138138
@pytest.mark.usefixtures("enable_pipeline_private_preview_features")
139+
@pytest.mark.skipif(
140+
condition=sys.version_info >= (3, 14),
141+
reason="Bytecode builder only supports CPython 3.7-3.11. Runtime automatically uses profiler for 3.12+ (see is_bytecode_optimization_enabled in utils.py)",
142+
)
139143
class TestPersistentLocalsPrivatePreview(TestPersistentLocalsProfiler):
140144
_PACKAGE = "bytecode"
141145

0 commit comments

Comments
 (0)