diff options
| author | Thomas Heller <theller@ctypes.org> | 2006-06-19 08:32:46 +0000 |
|---|---|---|
| committer | Thomas Heller <theller@ctypes.org> | 2006-06-19 08:32:46 +0000 |
| commit | c314ac54928f331bce52b2834aceb666373ef340 (patch) | |
| tree | f12731547028658abe18f8b169f549f22915cda9 | |
| parent | 5c298438b0df2e1f184cbc3dd37538d2b2c48176 (diff) | |
| download | cpython-git-c314ac54928f331bce52b2834aceb666373ef340.tar.gz | |
Next try to fix the OpenBSD buildbot tests:
Use ctypes.util.find_library to locate the C runtime library
on platforms where is returns useful results.
| -rw-r--r-- | Lib/ctypes/test/test_loading.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py index 4841034a84..28c83fd4a9 100644 --- a/Lib/ctypes/test/test_loading.py +++ b/Lib/ctypes/test/test_loading.py @@ -9,18 +9,10 @@ if os.name == "nt": libc_name = "msvcrt" elif os.name == "ce": libc_name = "coredll" -elif sys.platform == "darwin": - libc_name = "libc.dylib" elif sys.platform == "cygwin": libc_name = "cygwin1.dll" else: - for line in os.popen("ldd %s" % sys.executable): - if "libc.so" in line: - if sys.platform.startswith("openbsd3"): - libc_name = line.split()[4] - else: - libc_name = line.split()[2] - break + libc_name = find_library("c") if is_resource_enabled("printing"): print "libc_name is", libc_name |
