Skip to content

Commit 1220e74

Browse files
author
Saanika Gupta
committed
Temp: Checking if the test runs for 3.13
1 parent eb18f39 commit 1220e74

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def mock_function_multi_return_expected(__self, mock_arg):
6565
@pytest.mark.unittest
6666
@pytest.mark.pipeline_test
6767
@pytest.mark.skipif(
68-
condition=sys.version_info >= (3, 13) or platform.python_implementation() == "PyPy",
68+
condition=sys.version_info > (3, 13) or platform.python_implementation() == "PyPy",
6969
reason="historical implementation doesn't support Python 3.13+, and relies on CPython bytecode optimization; PyPy does not support required opcodes",
7070
)
7171
class TestPersistentLocalsProfiler:
@@ -208,7 +208,8 @@ def test_multiple_return(self):
208208
@pytest.mark.unittest
209209
@pytest.mark.pipeline_test
210210
@pytest.mark.skipif(
211-
condition=sys.version_info >= (3, 11), reason="historical implementation doesn't support Python 3.11+"
211+
condition=sys.version_info >= (3, 11),
212+
reason="Historical implementation doesn't support Python 3.11+. This tests legacy bytecode manipulation from azureml-components. Runtime uses profiler from 3.12+, but this test forces bytecode usage to validate the historical implementation.",
212213
)
213214
class TestPersistentLocalsHistoricalImplementation(TestPersistentLocalsPrivatePreview):
214215
"""This is to test the implementation of persistent locals function in azuerml-components."""

0 commit comments

Comments
 (0)