diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py index 45585ae54a5..4841034a847 100644 --- a/Lib/ctypes/test/test_loading.py +++ b/Lib/ctypes/test/test_loading.py @@ -16,7 +16,7 @@ elif sys.platform == "cygwin": else: for line in os.popen("ldd %s" % sys.executable): if "libc.so" in line: - if sys.platform == "openbsd3": + if sys.platform.startswith("openbsd3"): libc_name = line.split()[4] else: libc_name = line.split()[2]