summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-24 06:22:57 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-24 06:22:57 (GMT)
commit6cf49cf10689bf2ff23fff05928daa23ecdf6fc2 (patch)
treef98ace06aafb9ce7005beb8b3dec94bfec382739 /Lib
parente7789b186d640ee00e5709fcfbeca43780d379e4 (diff)
downloadcpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.zip
cpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.tar.gz
cpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.tar.bz2
Remove the dl module per PEP 3108.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_dl.py34
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')