<s> import gc <EOL> import unittest <EOL> from comtypes . client import PumpEvents <EOL> class PumpEventsTest ( unittest . TestCase ) : <EOL> def test_pump_events_doesnt_leak_cycles ( self ) : <EOL> gc . collect ( ) <EOL> for i in range ( <NUM_LIT:3> ) : <EOL> PumpEvents ( <NUM_LIT> ) <EOL> ncycles = gc . collect ( ) <EOL> self . assertEqual ( ncycles , <NUM_LIT:0> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
