A crude way to tell apart testcases and suites with duck-typing
(test)
| 363 | return 0 |
| 364 | |
| 365 | def _isnotsuite(test): |
| 366 | "A crude way to tell apart testcases and suites with duck-typing" |
| 367 | try: |
| 368 | iter(test) |
| 369 | except TypeError: |
| 370 | return True |
| 371 | return False |
| 372 | |
| 373 | |
| 374 | class _DebugResult(object): |