Skip to content

Commit 80e4787

Browse files
Update tests/test_binary.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent 60baf01 commit 80e4787

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_binary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ def test_binary_dry_run_passes_through_to_provider_without_installing(self):
310310
assert updated.loaded_version == SemVer("999.999.999")
311311
assert provider.load("black", quiet=True, no_cache=True) is None
312312

313-
with pytest.raises(BinaryUninstallError):
314-
binary.uninstall(dry_run=True)
313+
removed = binary.uninstall(dry_run=True)
314+
assert removed.loaded_abspath is None
315315
assert provider.load("black", quiet=True, no_cache=True) is None
316316

317317
def test_binary_dry_run_install_does_not_update_stale_existing_binary(self):

0 commit comments

Comments
 (0)