MCPcopy Index your code
hub / github.com/python/cpython / _isnotsuite

Function _isnotsuite

Lib/unittest/suite.py:378–384  ·  view source on GitHub ↗

A crude way to tell apart testcases and suites with duck-typing

(test)

Source from the content-addressed store, hash-verified

376 return 0
377
378def _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
387class _DebugResult(object):

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…