Skip to content

Commit b3c8fc6

Browse files
author
Ruben DI BATTISTA
committed
When repairing a pure python wheel, exit code should be 0
1 parent 90d382e commit b3c8fc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/auditwheel/main_repair.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def execute(args, p):
127127
wheel_abi = analyze_wheel_abi(wheel_file)
128128
except NonPlatformWheel:
129129
logger.info(NonPlatformWheel.LOG_MESSAGE)
130-
return 1
130+
return 0
131131

132132
policy = get_policy_by_name(args.PLAT)
133133
reqd_tag = policy["priority"]

tests/integration/test_nonplatform_wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ def test_non_platform_wheel_repair(mode):
1616
stderr=subprocess.PIPE,
1717
text=True,
1818
)
19-
assert proc.returncode == 1
19+
assert proc.returncode == 0
2020
assert "This does not look like a platform wheel" in proc.stderr
2121
assert "AttributeError" not in proc.stderr

0 commit comments

Comments
 (0)