(self)
| 354 | # Type-specific _deepcopy_xxx() methods |
| 355 | |
| 356 | def test_deepcopy_atomic(self): |
| 357 | class NewStyle: |
| 358 | pass |
| 359 | def f(): |
| 360 | pass |
| 361 | tests = [None, ..., NotImplemented, 42, 2**100, 3.14, True, False, 1j, |
| 362 | b"bytes", "hello", "hello\u1234", f.__code__, |
| 363 | NewStyle, range(10), max, property()] |
| 364 | for x in tests: |
| 365 | self.assertIs(copy.deepcopy(x), x) |
| 366 | |
| 367 | def test_deepcopy_list(self): |
| 368 | x = [[1, 2], 3] |