Skip to content

Commit 1b0f486

Browse files
committed
Specify width
1 parent 80d7d94 commit 1b0f486

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bpython/test/test_curtsies_painting.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ def test_cursor_stays_at_bottom_of_screen(self):
641641
def test_unhighlight_paren_bugs(self):
642642
"""two previous bugs, parent didn't highlight until next render
643643
and paren didn't unhighlight until enter"""
644+
self.repl.width = 32
644645
self.assertEqual(self.repl.rl_history.entries, [""])
645646
self.enter("(")
646647
self.assertEqual(self.repl.rl_history.entries, [""])
@@ -657,7 +658,8 @@ def test_unhighlight_paren_bugs(self):
657658
[
658659
cyan(">>> ") + on_magenta(bold(red("("))),
659660
green("... ") + on_magenta(bold(red(")"))),
660-
]
661+
],
662+
width=32
661663
)
662664
self.assert_paint(screen, (1, 5))
663665

@@ -667,7 +669,8 @@ def test_unhighlight_paren_bugs(self):
667669
[
668670
cyan(">>> ") + yellow("("),
669671
green("... ") + yellow(")") + bold(cyan(" ")),
670-
]
672+
],
673+
width=32
671674
)
672675
self.assert_paint(screen, (1, 6))
673676

0 commit comments

Comments
 (0)