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

Method test_suggestions_no_args

Lib/test/test_traceback.py:4299–4314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4297
4298class GetattrSuggestionTests(BaseSuggestionTests):
4299 def test_suggestions_no_args(self):
4300 class A:
4301 blech = None
4302 def __getattr__(self, attr):
4303 raise AttributeError()
4304
4305 actual = self.get_suggestion(A(), 'bluch')
4306 self.assertIn("blech", actual)
4307
4308 class A:
4309 blech = None
4310 def __getattr__(self, attr):
4311 raise AttributeError
4312
4313 actual = self.get_suggestion(A(), 'bluch')
4314 self.assertIn("blech", actual)
4315
4316 def test_suggestions_invalid_args(self):
4317 class NonStringifyClass:

Callers

nothing calls this directly

Calls 3

get_suggestionMethod · 0.80
assertInMethod · 0.80
AClass · 0.70

Tested by

no test coverage detected