Skip to content

Commit f8b56d1

Browse files
add failing test
1 parent 4d05870 commit f8b56d1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bpython/test/test_curtsies_painting.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,3 +450,16 @@ def test_cursor_stays_at_bottom_of_screen(self):
450450
u"'random'",
451451
u">>> "]
452452
self.assert_paint_ignoring_formatting(screen, (2, 4))
453+
454+
def test_unhighlight_paren_bug(self):
455+
"""infobox showing up during intermediate render was causing this to fail, #371"""
456+
self.enter('(')
457+
screen = [u">>> (",
458+
u"... "]
459+
self.assert_paint_ignoring_formatting(screen)
460+
461+
with output_to_repl(self.repl):
462+
self.repl.process_event(')')
463+
screen = fsarray([cyan(u">>> ")+yellow('('),
464+
green(u"... ")+yellow(')')])
465+
self.assert_paint(screen, (1, 3))

0 commit comments

Comments
 (0)