[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f8bde5e387
commit
c4371cf3e7
2 changed files with 6 additions and 4 deletions
|
|
@ -492,9 +492,9 @@ class TestPinnedRocmLeafDigitParity:
|
|||
"-like 'rocm*' glob) so custom find-links leaves stay on the verbatim path"
|
||||
)
|
||||
pinned_block = text[text.find("$_pinGfx211 = Test-RocmGfx211Leaf") :][:2000]
|
||||
assert "-like 'rocm*'" not in pinned_block, (
|
||||
"setup.ps1 pinned reroute must not route on a bare -like 'rocm*' glob"
|
||||
)
|
||||
assert (
|
||||
"-like 'rocm*'" not in pinned_block
|
||||
), "setup.ps1 pinned reroute must not route on a bare -like 'rocm*' glob"
|
||||
|
||||
def test_install_sh_repairable_requires_rocm_digit(self):
|
||||
text = INSTALL_SH.read_text(encoding = "utf-8")
|
||||
|
|
|
|||
|
|
@ -239,5 +239,7 @@ class TestPinnedIndexClearsUvEnv:
|
|||
"""UV_TORCH_BACKEND is stripped for pinned commands so uv cannot read it
|
||||
from the environment and reroute torch off the pinned index."""
|
||||
with mock.patch.dict(os.environ, {"UV_TORCH_BACKEND": "cpu"}):
|
||||
env = ips._install_env_for_cmd(["uv", "pip", "install", "torch", "--index-url", "https://x/cu128"])
|
||||
env = ips._install_env_for_cmd(
|
||||
["uv", "pip", "install", "torch", "--index-url", "https://x/cu128"]
|
||||
)
|
||||
assert env is not None and "UV_TORCH_BACKEND" not in env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue