def _isnotsuite(test):
    try:
        iter(test)
    except TypeError:
        return True
    return False
A crude way to tell apart testcases and suites with duck-typing
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/unittest/suite.py/_isnotsuite