Mercurial > hg-stable
changeset 21387:82f8d4e95c87
run-test: fix AttributeError in the --interactive prompt
One must choose between ``"y yes".split()`` and ``('y', 'yes')``. I choose the
later.
The feature still crash when you answer "yes" to use it. But at least, the
prompt itself works.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sat, 17 May 2014 00:38:48 -0700 |
parents | 3b0c522f04aa |
children | 9a1e3d705c2c |
files | tests/run-tests.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Sat May 17 00:37:06 2014 -0700 +++ b/tests/run-tests.py Sat May 17 00:38:48 2014 -0700 @@ -588,7 +588,7 @@ print 'Accept this change? [n] ', answer = sys.stdin.readline().strip() iolock.release() - if answer.lower() in ('y', 'yes').split(): + if answer.lower() in ('y', 'yes'): if self._test.endswith('.t'): rename(self._errpath, self._testpath) else: