<s> import platform <EOL> from pytest import mark <EOL> from jsonmodels . fields import StringField <EOL> from jsonmodels . models import Base <EOL> class User ( Base ) : <EOL> name = StringField ( ) <EOL> @ mark . skipif ( <EOL> platform . python_implementation ( ) == '<STR_LIT>' , <EOL> reason = "<STR_LIT>" <EOL> ) <EOL> def test_garbage_collecting ( ) : <EOL> first = len ( User . name . memory ) <EOL> instance = User ( name = '<STR_LIT>' ) <EOL> second = len ( User . name . memory ) <EOL> User ( name = '<STR_LIT>' ) <EOL> third = len ( User . name . memory ) <EOL> del instance <EOL> four = len ( User . name . memory ) <EOL> assert first < second <EOL> assert second == third <EOL> assert third > four <EOL> assert first == four </s>
