[issue25754] Test test_rlcompleter failed if run twice

2015-11-28 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue25754] Test test_rlcompleter failed if run twice

2015-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e889344436e by Martin Panter in branch 'default': Issue #25754: Allow test_rlcompleter to be run multiple times https://hg.python.org/cpython/rev/2e889344436e -- nosy: +python-dev ___ Python tracker

[issue25754] Test test_rlcompleter failed if run twice

2015-11-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25754] Test test_rlcompleter failed if run twice

2015-11-27 Thread Martin Panter
Martin Panter added the comment: Here is a possible fix, just using mock.patch.object() and a context manager to remove the attribute after the test. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file41179/repeat-rlcompleter.patch __

[issue25754] Test test_rlcompleter failed if run twice

2015-11-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -m test.regrtest test_rlcompleter test_rlcompleter [1/2] test_rlcompleter [2/2] test_rlcompleter test test_rlcompleter failed -- Traceback (most recent call last): File "/home/serhiy/py/cpython-debug/Lib/test/test_rlcompleter.py", line 66, in te