Skip to content

Commit 853cb8c

Browse files
committed
Fix test: prepare_console() requires events argument
1 parent 678eefd commit 853cb8c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/test_pyrepl/test_reader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def test_bow_whitespace_stops_at_whitespace(self):
565565
# GH#146044
566566
# unix-word-rubout (ctrl-w) should use whitespace boundaries,
567567
# not punctuation boundaries like bow() does
568-
reader = prepare_reader(prepare_console())
568+
reader = prepare_reader(prepare_console([]))
569569
reader.buffer = list("foo.bar baz")
570570
reader.pos = len(reader.buffer) # cursor at end
571571

@@ -575,7 +575,7 @@ def test_bow_whitespace_stops_at_whitespace(self):
575575

576576
def test_bow_whitespace_includes_punctuation_in_word(self):
577577
# GH#146044
578-
reader = prepare_reader(prepare_console())
578+
reader = prepare_reader(prepare_console([]))
579579
reader.buffer = list("foo.bar(baz) qux")
580580
reader.pos = 12 # cursor after ")"
581581

@@ -585,7 +585,7 @@ def test_bow_whitespace_includes_punctuation_in_word(self):
585585

586586
def test_bow_stops_at_punctuation(self):
587587
# Verify existing bow() still uses syntax_table (punctuation boundary)
588-
reader = prepare_reader(prepare_console())
588+
reader = prepare_reader(prepare_console([]))
589589
reader.buffer = list("foo.bar baz")
590590
reader.pos = len(reader.buffer)
591591

@@ -594,7 +594,7 @@ def test_bow_stops_at_punctuation(self):
594594

595595
def test_bow_vs_bow_whitespace_difference(self):
596596
# The key difference: bow() stops at '.', bow_whitespace() does not
597-
reader = prepare_reader(prepare_console())
597+
reader = prepare_reader(prepare_console([]))
598598
reader.buffer = list("foo.bar")
599599
reader.pos = len(reader.buffer)
600600

0 commit comments

Comments
 (0)