summaryrefslogtreecommitdiff
path: root/test_task.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2019-09-04 20:12:41 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2019-09-04 20:17:12 +0200
commit8484cfe1d767e08a86d727ed5b8743658816bd48 (patch)
tree80692c3fd02e503ec23e765709cecd26104dc00e /test_task.py
parent624f8c317ae972153640ff96ab3ee1bb83829cf7 (diff)
test_task: Store empty parameters as ''
Some test scripts do not expect None as parameter value.
Diffstat (limited to 'test_task.py')
-rwxr-xr-xtest_task.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test_task.py b/test_task.py
index a074a13..ac44201 100755
--- a/test_task.py
+++ b/test_task.py
@@ -52,8 +52,7 @@ def get_params(params, params_meta, language=None):
s = getpass.getpass('{}: '.format(description))
else:
s = rlinput('{}: '.format(description), params.get(name, ''))
- if s:
- params[name] = s
+ params[name] = s
except EOFError:
print()
else: