Skip to content

Commit 0023bc3

Browse files
mangelajoclaude
andcommitted
Fix lint and type-check errors in uboot test fixture
Fix import sorting (ruff I001) and replace pytest.fail() with raise AssertionError to satisfy ty's call-non-callable check. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 90ec530 commit 0023bc3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • python/packages/jumpstarter-driver-uboot/jumpstarter_driver_uboot

python/packages/jumpstarter-driver-uboot/jumpstarter_driver_uboot/driver_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from .driver import UbootConsole
1313
from jumpstarter.common.utils import serve
1414

15-
1615
UBOOT_RPM_URL = "https://kojipkgs.fedoraproject.org/packages/uboot-tools/2025.10/1.fc43/noarch/uboot-images-armv8-2025.10-1.fc43.noarch.rpm"
1716

1817

@@ -34,7 +33,7 @@ def uboot_image(tmpdir_factory):
3433
downloaded += len(chunk)
3534
print(f"Downloaded {downloaded} bytes (expected {total})")
3635
except requests.RequestException as e:
37-
pytest.fail(f"Failed to download u-boot RPM: {e}")
36+
raise AssertionError(f"Failed to download u-boot RPM: {e}") from e
3837

3938
print("Extracting u-boot.bin from RPM...")
4039
if shutil.which("rpm2cpio") and shutil.which("cpio"):

0 commit comments

Comments
 (0)