diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-10 21:20:19 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-10 21:20:19 (GMT) |
commit | 7f874fce630605027adc4f44e89e84569353216a (patch) | |
tree | f0e187f629741876f6de134f9918c66460d37a27 /Lib | |
parent | 0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf (diff) | |
download | cpython-7f874fce630605027adc4f44e89e84569353216a.zip cpython-7f874fce630605027adc4f44e89e84569353216a.tar.gz cpython-7f874fce630605027adc4f44e89e84569353216a.tar.bz2 |
Deprecate the dl module for removal in 3.0.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_dl.py | 5 | ||||
-rw-r--r-- | Lib/test/test_py3kwarn.py | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_dl.py b/Lib/test/test_dl.py index a2e4460..c04bc1b 100755 --- a/Lib/test/test_dl.py +++ b/Lib/test/test_dl.py @@ -2,9 +2,8 @@ """Test dlmodule.c Roger E. Masse revised strategy by Barry Warsaw """ - -import dl -from test.test_support import verbose,TestSkipped +from test.test_support import verbose,TestSkipped, import_module +dl = import_module('dl', deprecated=True) sharedlibs = [ ('/usr/lib/libc.so', 'getpid'), diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 991d5cf..30f1668 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -132,7 +132,7 @@ class TestStdlibRemovals(unittest.TestCase): 'Bastion', 'compiler', 'dircache') inclusive_platforms = {'irix':('pure',)} # XXX Don't know if lib-tk is only installed if _tkinter is built. - optional_modules = ('bsddb185', 'Canvas') + optional_modules = ('bsddb185', 'Canvas', 'dl') def check_removal(self, module_name, optional=False): """Make sure the specified module, when imported, raises a |