Added test for copy_reg rename.

Added note to documentation about copy_reg rename.
This commit is contained in:
Alexandre Vassalotti 2008-05-11 09:01:51 +00:00
parent 2ac747c05a
commit 25ad76c91d
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@
.. module:: copy_reg .. module:: copy_reg
:synopsis: Register pickle support functions. :synopsis: Register pickle support functions.
.. note::
The :mod:`copy_reg` module has been renamed to `copyreg` in Python 3.0.
.. index:: .. index::
module: pickle module: pickle

View File

@ -183,7 +183,7 @@ class TestStdlibRemovals(unittest.TestCase):
class TestStdlibRenames(unittest.TestCase): class TestStdlibRenames(unittest.TestCase):
renames = {} renames = {'copy_reg': 'copyreg'}
def check_rename(self, module_name, new_module_name): def check_rename(self, module_name, new_module_name):
"""Make sure that: """Make sure that: