Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d39e199a
Commit
d39e199a
authored
Nov 04, 2014
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #22773: fix failing test with old readline versions due to issue #19884.
parents
98e1b915
7e8b8678
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Lib/test/test_readline.py
Lib/test/test_readline.py
+4
-0
Modules/readline.c
Modules/readline.c
+4
-0
No files found.
Lib/test/test_readline.py
View file @
d39e199a
...
...
@@ -44,6 +44,10 @@ class TestHistoryManipulation (unittest.TestCase):
class
TestReadline
(
unittest
.
TestCase
):
@
unittest
.
skipIf
(
readline
.
_READLINE_VERSION
<
0x0600
and
"libedit"
not
in
readline
.
__doc__
,
"not supported in this library version"
)
def
test_init
(
self
):
# Issue #19884: Ensure that the ANSI sequence "\033[1034h" is not
# written into stdout when the readline module is imported and stdout
...
...
Modules/readline.c
View file @
d39e199a
...
...
@@ -1285,5 +1285,9 @@ PyInit_readline(void)
mod_state
=
(
readlinestate
*
)
PyModule_GetState
(
m
);
PyOS_ReadlineFunctionPointer
=
call_readline
;
setup_readline
(
mod_state
);
PyModule_AddIntConstant
(
m
,
"_READLINE_VERSION"
,
RL_READLINE_VERSION
);
PyModule_AddIntConstant
(
m
,
"_READLINE_RUNTIME_VERSION"
,
rl_readline_version
);
return
m
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment