def blacklist_check(path):
 (head, tests_dir) = os.path.split(path.dirname)
 if (tests_dir != u'tests'):
  return True
 (head, top_module) = os.path.split(head)
 return (path.purebasename in IGNORED_TESTS.get(top_module, []))

def blacklist_check ( path ) : ( head , tests_dir ) = os . path . split ( path . dirname ) if ( tests_dir != u'tests' ) : return True ( head , top_module ) = os . path . split ( head ) return ( path . purebasename in IGNORED_TESTS . get ( top_module , [ ] ) )
check if test is blacklisted and should be ignored .