ports/sysutils/py-ansible-lint/files/patch-conftest.py
Matthew Seaman f37a532329 sysutils/py-ansible-lint: fix the make test target
Enable the test suite to actually run.

Currently this results in: 12 failed, 782 passed in 915.04s (0:15:15)
2023-05-11 08:21:48 +01:00

11 lines
545 B
Python

--- conftest.py.orig 2023-05-09 16:16:59 UTC
+++ conftest.py
@@ -44,7 +44,7 @@ if not HAS_LIBYAML:
# While presence of libyaml is not required for runtime, we keep this error
# fatal here in order to be sure that we spot libyaml errors during testing.
arch = platform.machine()
- if arch not in ("arm64", "x86_64"):
+ if arch not in ("arm64", "amd64"):
warnings.warn(
f"This architecture ({arch}) is not supported by libyaml, performance will be degraded.",
category=pytest.PytestWarning,