mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Revert copy_reg -> copyreg rename.
This commit is contained in:
parent
06d2a2cb0e
commit
dffbf5f542
23 changed files with 83 additions and 94 deletions
|
|
@ -1,7 +1,7 @@
|
|||
"""Unit tests for the copy module."""
|
||||
|
||||
import copy
|
||||
import copyreg
|
||||
import copy_reg
|
||||
|
||||
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)
|
||||
copyreg.pickle(C, pickle_C, C)
|
||||
copy_reg.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)
|
||||
copyreg.pickle(C, pickle_C, C)
|
||||
copy_reg.pickle(C, pickle_C, C)
|
||||
y = copy.deepcopy(x)
|
||||
|
||||
def test_deepcopy_reduce_ex(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue