| 15 | def test_deepcopy(self): |
| 16 | # Object with a copy() method are responsible for deep-copying themselves. |
| 17 | class MyObject: |
| 18 | def __init__(self, i): |
| 19 | self.i = i |
| 20 | def copy(self): |
| 21 | return MyObject(graph.deepcopy(self.i)) |
| 22 | # Assert deep copy for different types. |
| 23 | for o1 in ( |
| 24 | None, True, False, |
no outgoing calls
searching dependent graphs…