Mercurial > hg-stable
changeset 35204:f12747de13ea
run-tests: simplify by using dict.pop() with default
Differential Revision: https://phab.mercurial-scm.org/D1573
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 01 Dec 2017 12:27:28 -0800 |
parents | d8d06a930d60 |
children | 779c6cf2967b |
files | tests/run-tests.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Mon Nov 20 23:23:10 2017 -0800 +++ b/tests/run-tests.py Fri Dec 01 12:27:28 2017 -0800 @@ -1218,9 +1218,7 @@ def __init__(self, path, *args, **kwds): # accept an extra "case" parameter - case = None - if 'case' in kwds: - case = kwds.pop('case') + case = kwds.pop('case', None) self._case = case self._allcases = parsettestcases(path) super(TTest, self).__init__(path, *args, **kwds)