diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-24 06:22:57 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-24 06:22:57 (GMT) |
commit | 6cf49cf10689bf2ff23fff05928daa23ecdf6fc2 (patch) | |
tree | f98ace06aafb9ce7005beb8b3dec94bfec382739 /Lib | |
parent | e7789b186d640ee00e5709fcfbeca43780d379e4 (diff) | |
download | cpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.zip cpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.tar.gz cpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.tar.bz2 |
Remove the dl module per PEP 3108.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_dl.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Lib/test/test_dl.py b/Lib/test/test_dl.py deleted file mode 100755 index 606da46..0000000 --- a/Lib/test/test_dl.py +++ /dev/null @@ -1,34 +0,0 @@ -#! /usr/bin/env python -"""Test dlmodule.c - Roger E. Masse revised strategy by Barry Warsaw -""" - -import dl -from test.test_support import verbose,TestSkipped - -sharedlibs = [ - ('/usr/lib/libc.so', 'getpid'), - ('/lib/libc.so.6', 'getpid'), - ('/usr/bin/cygwin1.dll', 'getpid'), - ('/usr/lib/libc.dylib', 'getpid'), - ] - -for s, func in sharedlibs: - try: - if verbose: - print('trying to open:', s, end=' ') - l = dl.open(s) - except dl.error as err: - if verbose: - print('failed', repr(str(err))) - pass - else: - if verbose: - print('succeeded...', end=' ') - l.call(func) - l.close() - if verbose: - print('worked!') - break -else: - raise TestSkipped('Could not open any shared libraries') |