@mark.skipif(
    platform.python_implementation() == 'PyPy',
    reason="PyPy's weakref implementation is not stable."
)
def test_garbage_collecting():
    first = len(User.name.memory)
    instance = User(name='Bob')
    second = len(User.name.memory)
    User(name='Frank')
    third = len(User.name.memory)
    del instance
    four = len(User.name.memory)

    assert first < second
    assert second == third
    assert four > third
    assert first == four
dataset/ETHPy150Open beregond/jsonmodels/tests/test_memory_usage.py/test_garbage_collecting/swapped operands of `>`