Skip to content

Commit 9f3460b

Browse files
committed
Correct auto complete tests after double underscore change
1 parent 563f5cb commit 9f3460b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bpython/test/test_autocomplete.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,12 @@ def test_att_matches_found_on_old_style_instance(self):
245245
locals_={'a': OldStyleFoo()}),
246246
set(['a.method', 'a.a', 'a.b']))
247247
self.assertIn(u'a.__dict__',
248-
self.com.matches(3, 'a.__', locals_={'a': OldStyleFoo()}))
248+
self.com.matches(4, 'a.__', locals_={'a': OldStyleFoo()}))
249249

250250
@skip_old_style
251251
def test_att_matches_found_on_old_style_class_object(self):
252252
self.assertIn(u'A.__dict__',
253-
self.com.matches(3, 'A.__', locals_={'A': OldStyleFoo}))
253+
self.com.matches(4, 'A.__', locals_={'A': OldStyleFoo}))
254254

255255
@skip_old_style
256256
def test_issue536(self):
@@ -260,7 +260,7 @@ def __getattr__(self, attr):
260260

261261
locals_ = {'a': OldStyleWithBrokenGetAttr()}
262262
self.assertIn(u'a.__module__',
263-
self.com.matches(3, 'a.__', locals_=locals_))
263+
self.com.matches(4, 'a.__', locals_=locals_))
264264

265265

266266
class TestMagicMethodCompletion(unittest.TestCase):

0 commit comments

Comments
 (0)