From b3c8fc604f8b50d5f9f82c16b710646f625dceae Mon Sep 17 00:00:00 2001 From: Ruben DI BATTISTA Date: Thu, 13 Jul 2023 17:39:11 +0200 Subject: [PATCH] When repairing a pure python wheel, exit code should be 0 --- src/auditwheel/main_repair.py | 2 +- tests/integration/test_nonplatform_wheel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auditwheel/main_repair.py b/src/auditwheel/main_repair.py index b1d9f878..d9b29a53 100644 --- a/src/auditwheel/main_repair.py +++ b/src/auditwheel/main_repair.py @@ -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"] diff --git a/tests/integration/test_nonplatform_wheel.py b/tests/integration/test_nonplatform_wheel.py index 817d084e..d0a62cea 100644 --- a/tests/integration/test_nonplatform_wheel.py +++ b/tests/integration/test_nonplatform_wheel.py @@ -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