def _isnotsuite(test):
 try:
  iter(test)
 except TypeError:
  return True
 return False

def _isnotsuite ( test ) : try : iter ( test ) except TypeError : return True return False
a crude way to tell apart testcases and suites with duck-typing .