Skip to content

Commit

Permalink
When repairing a pure python wheel, exit code should be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben DI BATTISTA committed Jul 13, 2023
1 parent 90d382e commit b3c8fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/auditwheel/main_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def execute(args, p):
wheel_abi = analyze_wheel_abi(wheel_file)
except NonPlatformWheel:
logger.info(NonPlatformWheel.LOG_MESSAGE)
return 1
return 0

policy = get_policy_by_name(args.PLAT)
reqd_tag = policy["priority"]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_nonplatform_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def test_non_platform_wheel_repair(mode):
stderr=subprocess.PIPE,
text=True,
)
assert proc.returncode == 1
assert proc.returncode == 0
assert "This does not look like a platform wheel" in proc.stderr
assert "AttributeError" not in proc.stderr

0 comments on commit b3c8fc6

Please sign in to comment.