mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Deprecate the bsddb185 module for removal in 3.0.
This commit is contained in:
parent
4c1f881f13
commit
768d44f54d
5 changed files with 16 additions and 3 deletions
|
@ -131,6 +131,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
|
||||
'Bastion')
|
||||
inclusive_platforms = {'irix':('pure',)}
|
||||
optional_modules = ('bsddb185',)
|
||||
|
||||
def check_removal(self, module_name, optional=False):
|
||||
"""Make sure the specified module, when imported, raises a
|
||||
|
@ -169,6 +170,11 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
for module_name in self.inclusive_platforms.get(sys.platform, []):
|
||||
self.check_removal(module_name, optional=True)
|
||||
|
||||
def test_optional_module_removals(self):
|
||||
# Test the removal of modules that may or may not be built.
|
||||
for module_name in self.optional_modules:
|
||||
self.check_removal(module_name, optional=True)
|
||||
|
||||
def test_os_path_walk(self):
|
||||
msg = "In 3.x, os.path.walk is removed in favor of os.walk."
|
||||
def dumbo(where, names, args): pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue