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

12 lines
403 B
Text

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