Skip to content

Commit 24e5c69

Browse files
committed
Failing test for bpython#536
1 parent e898411 commit 24e5c69

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bpython/test/test_autocomplete.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,16 @@ def test_att_matches_found_on_old_style_class_object(self):
251251
self.assertIn(u'A.__dict__',
252252
self.com.matches(3, 'A._', locals_={'A': OldStyleFoo}))
253253

254+
@skip_old_style
255+
@unittest.expectedFailure
256+
def test_issue536(self):
257+
class OldStyleWithBrokenGetAttr:
258+
def __getattr__(self, attr):
259+
raise Exception()
260+
261+
locals_ = {'a': OldStyleWithBrokenGetAttr()}
262+
self.com.matches(2, 'a.', locals_=locals_)
263+
254264

255265
class TestMagicMethodCompletion(unittest.TestCase):
256266

0 commit comments

Comments
 (0)