MCPcopy Index your code
hub / github.com/RustPython/RustPython / _isnotsuite

Function _isnotsuite

Lib/unittest/suite.py:365–371  ·  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

363 return 0
364
365def _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
374class _DebugResult(object):

Callers 1

runMethod · 0.85

Calls 1

iterFunction · 0.85

Tested by

no test coverage detected