<s> from __future__ import division , absolute_import , print_function <EOL> import os <EOL> import re <EOL> import sys <EOL> from test . _common import unittest <EOL> pkgpath = os . path . dirname ( __file__ ) or '<STR_LIT:.>' <EOL> sys . path . append ( pkgpath ) <EOL> os . chdir ( pkgpath ) <EOL> try : <EOL> del sys . modules [ "<STR_LIT>" ] <EOL> except KeyError : <EOL> pass <EOL> def suite ( ) : <EOL> s = unittest . TestSuite ( ) <EOL> for fname in os . listdir ( pkgpath ) : <EOL> match = re . match ( r'<STR_LIT>' , fname ) <EOL> if match : <EOL> modname = match . group ( <NUM_LIT:1> ) <EOL> s . addTest ( __import__ ( modname ) . suite ( ) ) <EOL> return s <EOL> if __name__ == b'<STR_LIT:__main__>' : <EOL> unittest . main ( defaultTest = '<STR_LIT>' ) </s>
