Skip to content

Commit 20e41fc

Browse files
committed
Run test_readline
1 parent 565ec43 commit 20e41fc

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test.test_readline.TestReadline.test_auto_history_disabled @ linux-x86_64
2+
test.test_readline.TestReadline.test_auto_history_enabled @ linux-x86_64
3+
test.test_readline.TestReadline.test_gh123321_threadsafe @ linux-x86_64
4+
test.test_readline.TestReadline.test_init @ linux-x86_64

graalpython/lib-python/3/test/test_readline.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ def test_write_read_limited_history(self):
162162

163163
class TestReadline(unittest.TestCase):
164164

165-
@unittest.skipIf(readline._READLINE_VERSION < 0x0601 and not is_editline,
166-
"not supported in this library version")
165+
# GraalPy change: no _READLINE_VERSION
166+
# @unittest.skipIf(readline._READLINE_VERSION < 0x0601 and not is_editline,
167+
# "not supported in this library version")
167168
def test_init(self):
168169
# Issue #19884: Ensure that the ANSI sequence "\033[1034h" is not
169170
# written into stdout when the readline module is imported and stdout
@@ -308,8 +309,9 @@ def display(substitution, matches, longest_match_length):
308309
# See https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES
309310
# - editline: history size is broken on OS X 10.11.6.
310311
# Newer versions were not tested yet.
311-
@unittest.skipIf(readline._READLINE_VERSION < 0x600,
312-
"this readline version does not support history-size")
312+
# GraalPy change: no _READLINE_VERSION
313+
# @unittest.skipIf(readline._READLINE_VERSION < 0x600,
314+
# "this readline version does not support history-size")
313315
@unittest.skipIf(is_editline,
314316
"editline history size configuration is broken")
315317
def test_history_size(self):

0 commit comments

Comments
 (0)