ports/sysutils/py-distro/patches/patch-tests_test_distro_py

13 lines
403 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: tests/test_distro.py
--- tests/test_distro.py.orig
+++ tests/test_distro.py
@@ -31,7 +31,7 @@ SPECIAL = os.path.join(RESOURCES, "special")
DISTROS = [dist for dist in os.listdir(DISTROS_DIR) if dist != "__shared__"]
-IS_LINUX = sys.platform.startswith("linux")
+IS_LINUX = sys.platform.startswith("linux") or sys.platform.startswith("openbsd")
if IS_LINUX:
from distro import distro