[issue41034] test_builtin: PtyTests fail when run twice

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: The "./python -m test -R 3:3 test_builtin" command loads the readline module somehow: --- $ ./python -i -m test -R 3:3 test_builtin (...) SystemExit: 0 >>> import sys >>> 'readline' in sys.modules True --- This bug is a duplicate of bpo-13886. Moreover, I t

[issue41034] test_builtin: PtyTests fail when run twice

2020-06-19 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue41034] test_builtin: PtyTests fail when run twice

2020-06-19 Thread STINNER Victor
STINNER Victor added the comment: See also: * bpo-19884: "Importing readline produces erroneous output". Worked around using TERM='xterm-256color env var and by calling rl_variable_bind ("enable-meta-key", "off"); * bpo-11679 "readline interferes with characters beginning with byte \xe9". -

[issue41034] test_builtin: PtyTests fail when run twice

2020-06-19 Thread STINNER Victor
STINNER Victor added the comment: I also reproduce the issue on RHEL 8 with readline 7.0. But the issue is hidden if stdout is not a TTY. I use "| cat", so Python stdout is a pipe: $ ./python -m test test_readline test_builtin -v|cat (...) Tests result: SUCCESS -- _

[issue41034] test_builtin: PtyTests fail when run twice

2020-06-19 Thread STINNER Victor
STINNER Victor added the comment: I reproduce the issue on Fedora 32 with readline 8.0: $ ./python -m test.pythoninfo|grep readline readline._READLINE_LIBRARY_VERSION: 8.0 readline._READLINE_RUNTIME_VERSION: 0x800 readline._READLINE_VERSION: 0x800 -- _

[issue41034] test_builtin: PtyTests fail when run twice

2020-06-19 Thread STINNER Victor
STINNER Victor added the comment: The two non-ASCII tests are very old: commit 0d776b1ce849ff0646738b6361ef940ab6f8b9cb Author: Antoine Pitrou Date: Sun Nov 6 00:34:26 2011 +0100 Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode error handler in interactive

[issue41034] test_builtin: PtyTests fail when run twice

2020-06-19 Thread STINNER Victor
STINNER Victor added the comment: test_input_tty_non_ascii_unicode_errors() fails if readline was imported previously. Example: $ ./python -m test test_readline test_builtin -v (...) == FAIL: test_input_tty_non_ascii (test.te

[issue41034] test_builtin: PtyTests fail when run twice

2020-06-19 Thread STINNER Victor
New submission from STINNER Victor : I tried to check for reference leaks, but running test_builtin twice fails: $ ./python -m test -R 3:3 test_builtin 0:00:00 load avg: 2.18 Run tests sequentially 0:00:00 load avg: 2.18 [1/1] test_builtin beginning 6 repetitions 123456 .test test_builtin faile