diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-11 08:25:28 +0000 |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-11 08:25:28 +0000 |
commit | 9510e4a9f8503421c9f589e99e697aa5f3b89b69 (patch) | |
tree | 59e7f4f21d2c0902316f91b00d98e0e8d4b6c4aa /Lib/test/test_copy.py | |
parent | f602c71b077de965693c62d65d0e261bd964fbda (diff) | |
download | cpython-git-9510e4a9f8503421c9f589e99e697aa5f3b89b69.tar.gz |
Added module stub for copy_reg renaming in 3.0.
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
Diffstat (limited to 'Lib/test/test_copy.py')
-rw-r--r-- | Lib/test/test_copy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_copy.py b/Lib/test/test_copy.py index d2899bd4ea..8645ba1b8a 100644 --- a/Lib/test/test_copy.py +++ b/Lib/test/test_copy.py @@ -1,7 +1,7 @@ """Unit tests for the copy module.""" import copy -import copy_reg +import copyreg import unittest from test import test_support @@ -42,7 +42,7 @@ class TestCopy(unittest.TestCase): return (C, (obj.foo,)) x = C(42) self.assertRaises(TypeError, copy.copy, x) - copy_reg.pickle(C, pickle_C, C) + copyreg.pickle(C, pickle_C, C) y = copy.copy(x) def test_copy_reduce_ex(self): @@ -215,7 +215,7 @@ class TestCopy(unittest.TestCase): return (C, (obj.foo,)) x = C(42) self.assertRaises(TypeError, copy.deepcopy, x) - copy_reg.pickle(C, pickle_C, C) + copyreg.pickle(C, pickle_C, C) y = copy.deepcopy(x) def test_deepcopy_reduce_ex(self): |