Skip to content

Commit 995f364

Browse files
committed
Add negative test
1 parent d88732f commit 995f364

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Lib/test/test_pyrepl/test_utils.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def test_wlen(self):
5050
def test_wlen_with_osc_sequence(self):
5151
self.assertEqual(wlen("\x1b]633;A\x07>>> "), 4)
5252

53+
def test_wlen_with_unterminated_osc_sequence(self):
54+
self.assertEqual(wlen("\x1b]633;A"), 7)
55+
5356
def test_prev_next_window(self):
5457
def gen_normal():
5558
yield 1

0 commit comments

Comments
 (0)