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

Class MyNotContainingClass

extra_tests/snippets/operator_membership.py:51–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50# test __contains__ in user objects
51class MyNotContainingClass:
52 pass
53
54
55assert_raises(TypeError, lambda: 1 in MyNotContainingClass())

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected