PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/unit_tests/helpers.py

https://bitbucket.org/jpellerin/nose/
Python | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | a217a5707ac99215d010366b39349407 MD5 | raw file
1def iter_compat(suite):
2    try:
3        suite.__iter__
4        return suite
5    except AttributeError:
6        return suite._tests