File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4136,6 +4136,13 @@ class A:
41364136 actual = self .get_suggestion (A (), 'bluch' )
41374137 self .assertNotIn ("blech" , actual )
41384138
4139+ def test_suggestions_for_same_name (self ):
4140+ class A :
4141+ def __dir__ (self ):
4142+ return ['blech' ]
4143+ actual = self .get_suggestion (A (), 'blech' )
4144+ self .assertNotIn ("Did you mean" , actual )
4145+
41394146
41404147class GetattrSuggestionTests (BaseSuggestionTests ):
41414148 def test_suggestions_no_args (self ):
@@ -4179,13 +4186,6 @@ def __getattr__(self, attr):
41794186 actual = self .get_suggestion (cls (), 'bluch' )
41804187 self .assertIn ("blech" , actual )
41814188
4182- def test_suggestions_for_same_name (self ):
4183- class A :
4184- def __dir__ (self ):
4185- return ['blech' ]
4186- actual = self .get_suggestion (A (), 'blech' )
4187- self .assertNotIn ("Did you mean" , actual )
4188-
41894189
41904190class DelattrSuggestionTests (BaseSuggestionTests ):
41914191 attr_function = delattr
You can’t perform that action at this time.
0 commit comments