Skip to content

Commit

Permalink
Address coverage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkmann00 committed Apr 29, 2024
1 parent f90341c commit 10949cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions delocate/cmd/delocate_fuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def main() -> None: # noqa: D103
wheel1, wheel2 = [Path(wheel).resolve(strict=True) for wheel in args.wheels]
if args.wheel_dir is not None:
out_wheel = Path(args.wheel_dir).resolve()
if not out_wheel.exists():
out_wheel.mkdir(parents=True)
out_wheel.mkdir(parents=True, exist_ok=True)
else:
out_wheel = None
fuse_wheels(wheel1, wheel2, out_wheel)
Expand Down
3 changes: 3 additions & 0 deletions delocate/tests/test_delocating.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,9 @@ def test_get_archs_and_version_from_wheel_name() -> None:
) == {
"arm64": Version("12.0"),
}
assert _get_archs_and_version_from_wheel_name(
"foo-1.0-py310-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.whl"
)
with pytest.raises(InvalidWheelFilename, match="Invalid wheel filename"):
_get_archs_and_version_from_wheel_name("foo.whl")

Expand Down

0 comments on commit 10949cb

Please sign in to comment.