MCPcopy Create free account
hub / github.com/apple/coremltools / test_isinstance

Function test_isinstance

deps/pybind11/tests/test_class.py:236–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235
236def test_isinstance():
237 objects = [(), {}, m.Pet("Polly", "parrot")] + [m.Dog("Molly")] * 4
238 expected = (True, True, True, True, True, False, False)
239 assert m.check_instances(objects) == expected
240
241
242def test_mismatched_holder():

Callers

nothing calls this directly

Calls 2

PetMethod · 0.45
DogMethod · 0.45

Tested by

no test coverage detected