A crude way to tell apart testcases and suites with duck-typing
(test)
| 376 | return 0 |
| 377 | |
| 378 | def _isnotsuite(test): |
| 379 | "A crude way to tell apart testcases and suites with duck-typing" |
| 380 | try: |
| 381 | iter(test) |
| 382 | except TypeError: |
| 383 | return True |
| 384 | return False |
| 385 | |
| 386 | |
| 387 | class _DebugResult(object): |
no outgoing calls
no test coverage detected
searching dependent graphs…