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