Skip to content

Commit

Permalink
Fix recursion test (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored Apr 24, 2024
1 parent 7aa5f1d commit e73e820
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_py_object_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ def test_builtins(self):

def test_recursion(self):
class A:
_reference = []

@property
def parent(self):
return A()
obj = A()
self._reference.append(obj)
return obj

obj = A()
proxy = self.convert_object(obj)
Expand Down

0 comments on commit e73e820

Please sign in to comment.