MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _isnotsuite

Function _isnotsuite

tools/python-3.11.9-amd64/Lib/unittest/suite.py:366–372  ·  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

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

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected