<s> from unittest import TestSuite <EOL> class DeferrableTestSuite ( TestSuite ) : <EOL> def run ( self , result ) : <EOL> for test in self . _tests : <EOL> if result . shouldStop : <EOL> break <EOL> deferred = test ( result ) <EOL> if deferred is not None and hasattr ( deferred , '<STR_LIT>' ) : <EOL> for x in deferred : <EOL> yield x <EOL> yield </s>
