]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added test for copy_reg rename.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Sun, 11 May 2008 09:01:51 +0000 (09:01 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Sun, 11 May 2008 09:01:51 +0000 (09:01 +0000)
Added note to documentation about copy_reg rename.

Doc/library/copy_reg.rst
Lib/test/test_py3kwarn.py

index 9b82a31bacc8b24f02df9566bdc29defbe7cd4f3..407044c4bb288cb4112d1fe93f28faeb19d7ff76 100644 (file)
@@ -5,6 +5,8 @@
 .. module:: copy_reg
    :synopsis: Register pickle support functions.
 
+.. note::
+    The :mod:`copy_reg` module has been renamed to `copyreg` in Python 3.0.
 
 .. index::
    module: pickle
index ddf38ad797dbfcd6d9b0a7a08349ececec15a49d..40f7b19045515a0cc69d52cec4b946a3470a64c0 100644 (file)
@@ -183,7 +183,7 @@ class TestStdlibRemovals(unittest.TestCase):
 
 class TestStdlibRenames(unittest.TestCase):
 
-    renames = {}
+    renames = {'copy_reg': 'copyreg'}
 
     def check_rename(self, module_name, new_module_name):
         """Make sure that: