Skip to content

Commit

Permalink
Merge pull request #384 from JIghtuse/master
Browse files Browse the repository at this point in the history
runtests: Simplify dictionary usage
  • Loading branch information
Dimitri van Heesch committed Aug 20, 2015
2 parents 48ced3e + 95d99a4 commit 5c2b6c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions testing/runtests.py
Expand Up @@ -41,10 +41,7 @@ def get_config(self):
if (key=='config'):
value = value.replace('$INPUTDIR',self.args.inputdir)
#print('key=%s value=%s' % (key,value))
if key in config:
config[key].append(value)
else:
config[key] = [value]
config.setdefault(key, []).append(value)
return config

def prepare_test(self):
Expand Down

0 comments on commit 5c2b6c2

Please sign in to comment.