mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
run-tests: simplify by using dict.pop() with default
Differential Revision: https://phab.mercurial-scm.org/D1573
This commit is contained in:
parent
58c39c1c8d
commit
ca0a21ad2a
@ -1218,9 +1218,7 @@ class TTest(Test):
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user