<s> from __future__ import absolute_import , division , with_statement <EOL> import logging <EOL> import sys <EOL> import textwrap <EOL> from tornado . test . util import unittest <EOL> TEST_MODULES = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> def all ( ) : <EOL> return unittest . defaultTestLoader . loadTestsFromNames ( TEST_MODULES ) <EOL> class PilboxTextTestRunner ( unittest . TextTestRunner ) : <EOL> def run ( self , test ) : <EOL> result = super ( PilboxTextTestRunner , self ) . run ( test ) <EOL> if result . skipped : <EOL> skip_reasons = set ( reason for ( test , reason ) in result . skipped ) <EOL> self . stream . write ( textwrap . fill ( <EOL> "<STR_LIT>" % <EOL> "<STR_LIT:U+002CU+0020>" . join ( sorted ( skip_reasons ) ) ) ) <EOL> self . stream . write ( "<STR_LIT:\n>" ) <EOL> return result <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import warnings <EOL> warnings . filterwarnings ( "<STR_LIT:error>" ) <EOL> warnings . filterwarnings ( "<STR_LIT:ignore>" , category = ImportWarning ) <EOL> warnings . filterwarnings ( "<STR_LIT:ignore>" , category = DeprecationWarning ) <EOL> warnings . filterwarnings ( "<STR_LIT:error>" , category = DeprecationWarning , <EOL> module = r"<STR_LIT>" ) <EOL> warnings . filterwarnings ( "<STR_LIT:ignore>" , category = DeprecationWarning , <EOL> message = "<STR_LIT>" ) <EOL> logging . getLogger ( "<STR_LIT>" ) . setLevel ( logging . CRITICAL ) <EOL> import tornado . testing <EOL> kwargs = { } <EOL> if sys . version_info >= ( <NUM_LIT:3> , <NUM_LIT:2> ) : <EOL> kwargs [ '<STR_LIT>' ] = False <EOL> kwargs [ '<STR_LIT>' ] = PilboxTextTestRunner <EOL> tornado . testing . main ( ** kwargs ) </s>
