New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readline.clear_history() missing in test_readline.py #59825
Comments
$ lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
$ hg branch
2.7
$ ./python Lib/test/test_readline.py
testHistoryUpdates (__main__.TestHistoryManipulation) ... ERROR ====================================================================== Traceback (most recent call last):
File "Lib/test/test_readline.py", line 16, in testHistoryUpdates
readline.clear_history()
AttributeError: 'module' object has no attribute 'clear_history' Ran 1 test in 0.003s FAILED (errors=1)
Traceback (most recent call last):
File "Lib/test/test_readline.py", line 43, in <module>
test_main()
File "Lib/test/test_readline.py", line 40, in test_main
run_unittest(TestHistoryManipulation)
File "/art/python/cpython/Lib/test/test_support.py", line 1125, in run_unittest
_run_suite(suite)
File "/art/python/cpython/Lib/test/test_support.py", line 1108, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_readline.py", line 16, in testHistoryUpdates
readline.clear_history()
AttributeError: 'module' object has no attribute 'clear_history' |
$ dpkg -l | grep readline
ii libreadline-dev 6.2-8 GNU readline and history libraries, development files
ii libreadline5 5.2-11 GNU readline and history libraries, run-time libraries
ii libreadline6 6.2-8 GNU readline and history libraries, run-time libraries
ii libreadline6-dev 6.2-8 GNU readline and history libraries, development files
ii readline-common 6.2-8 GNU readline and history libraries, common files |
Check if clear_history() is available before calling it. |
1 similar comment
Check if clear_history() is available before calling it. |
New changeset 961a15aff2a6 by Georg Brandl in branch '3.2': |
New changeset dda08ec9fbd5 by Georg Brandl in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: