Skip to content

Commit fba41b6

Browse files
authoredApr 11, 2025··
[0.6 release][ez] fix unittest-arm (#10114)
### Summary As title. For some reason, there are two tests which fail on `main` but pass on release branch. Therefore, remove expected failures from the test. ### Test plan Ran the `test_torch_functions.py` test locally. ``` (executorch) ssjia@devvm5117 ~/scratch/executorch (ssj_release_fix_arm_tests●)$ pytest backends/arm/test/models/test_torch_functions.py ===================================================================================================== test session starts ===================================================================================================== platform linux -- Python 3.10.0, pytest-8.0.1, pluggy-1.4.0 rootdir: /home/ssjia/scratch/executorch/backends/arm/test configfile: pytest.ini plugins: anyio-4.6.0, hypothesis-6.98.10, xdist-3.5.0, rerunfailures-15.0 collected 20 items backends/arm/test/models/test_torch_functions.py .....xx.xx......x.xx [100%] ====================================================================================================== warnings summary ======================================================================================================= ../../anaconda3/envs/executorch/lib/python3.10/site-packages/executorch/exir/dialects/edge/_ops.py:9 /home/ssjia/anaconda3/envs/executorch/lib/python3.10/site-packages/executorch/exir/dialects/edge/_ops.py:9: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources ../../anaconda3/envs/executorch/lib/python3.10/site-packages/executorch/extension/pybindings/portable_lib.py:20 /home/ssjia/anaconda3/envs/executorch/lib/python3.10/site-packages/executorch/extension/pybindings/portable_lib.py:20: ExperimentalWarning: This API is experimental and subject to change without notice. _warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ========================================================================================= 13 passed, 7 xfailed, 2 warnings in 32.29s ========================================================================================== ```

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎backends/arm/test/models/test_torch_functions.py

-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ def test_torch_fns_MI(test_data):
129129
"Requires dynamic output shape.",
130130
"topk": "NotImplementedError: No registered serialization name for <class 'torch.return_types.topk'> found",
131131
"sort": "NotImplementedError: No registered serialization name for <class 'torch.return_types.sort'> found",
132-
"t": "MLETORCH-855: Issue with Quantization folding.",
133-
"norm": "An error occurred when running the 'KeepDimsFalseToSqueezePass' pass after the following passes:",
134132
},
135133
)
136134
def test_torch_fns_BI(test_data):

0 commit comments

Comments
 (0)
Please sign in to comment.