[BE] bump `optree` version to 0.12.1 (#130139)
0.12.0 Major Updates:
- Add context manager to temporarily set the dictionary sorting mode
- Add accessor APIs
- Use `stable` tag for `pybind11` for Python 3.13 support
- Fix potential segmentation fault for pickling support
0.12.1 Updates:
- Fix warning regression during import when launch with strict warning filters
Closes #130155
Pull Request resolved: https://github.com/pytorch/pytorch/pull/130139
Approved by: https://github.com/zou3519
ghstack dependencies: #130895
diff --git a/test/test_mps.py b/test/test_mps.py
index a808657..a8e4a68 100644
--- a/test/test_mps.py
+++ b/test/test_mps.py
@@ -11598,7 +11598,7 @@
# TODO: Remove once test_testing.py is running on MPS devices
def test_no_warning_on_import(self):
out = subprocess.check_output(
- [sys.executable, "-W", "all", "-c", "import torch"],
+ [sys.executable, "-W", "always", "-c", "import torch"],
stderr=subprocess.STDOUT,
# On Windows, opening the subprocess with the default CWD makes `import torch`
# fail, so just set CWD to this script's directory
@@ -11640,11 +11640,10 @@
if len(w) != 1:
print(w)
exit(2)
-
"""
try:
subprocess.check_output(
- [sys.executable, '-W', 'all', '-c', script],
+ [sys.executable, '-W', 'always', '-c', script],
stderr=subprocess.STDOUT,
# On Windows, opening the subprocess with the default CWD makes `import torch`
# fail, so just set CWD to this script's directory