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

Class NameCompareTrue

Lib/test/test_threading_local.py:218–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 # Trick the "if name == '__dict__':" test of __setattr__()
217 # to always be true
218 class NameCompareTrue:
219 def __eq__(self, other):
220 return True
221
222 loop = Loop()
223 with self.assertRaisesRegex(AttributeError, 'Loop.*read-only'):

Callers 1

test_errorMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_errorMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…